Public Types | |
typedef std::unordered_map< int32_t, ScriptVariable > | ScVarMap |
typedef std::shared_ptr< ScVarMap > | PScVarMap |
Public Member Functions | |
std::unique_ptr< ccInstance > | Fork () |
void | Abort () |
void | AbortAndDestroy () |
int | CallScriptFunction (const char *funcname, int32_t num_params, const RuntimeScriptValue *params) |
Shared::String | GetCallStack (int max_lines=INT_MAX) const |
void | GetScriptPosition (ScriptPosition &script_pos) const |
RuntimeScriptValue | GetSymbolAddress (const char *symname) const |
void | DumpInstruction (const ScriptOperation &op) const |
bool | IsBeingRun () const |
void | NotifyAlive () |
bool | ResolveScriptImports (const ccScript *scri) |
bool | ResolveImportFixups (const ccScript *scri) |
Static Public Member Functions | |
static ccInstance * | GetCurrentInstance (void) |
static void | FreeInstanceStack () |
static std::unique_ptr< ccInstance > | CreateFromScript (PScript script) |
static std::unique_ptr< ccInstance > | CreateEx (PScript scri, const ccInstance *joined) |
static void | SetExecTimeout (unsigned sys_poll_ms, unsigned abort_ms, unsigned abort_loops) |
Public Attributes | |
int32_t | flags |
PScVarMap | globalvars |
char * | globaldata |
int32_t | globaldatasize |
intptr_t * | code |
ccInstance * | runningInst |
int32_t | codesize |
char * | strings |
int32_t | stringssize |
RuntimeScriptValue * | exports |
RuntimeScriptValue * | stack |
int | num_stackentries |
char * | stackdata |
char * | stackdata_ptr |
int32_t | stackdatasize |
RuntimeScriptValue | registers [CC_NUM_REGISTERS] |
int32_t | pc |
int32_t | line_number |
PScript | instanceof |
int | loadedInstanceId |
int | returnValue |
int | callStackSize |
int32_t | callStackLineNumber [128] |
int32_t | callStackAddr [128] |
ccInstance * | callStackCodeInst [128] |
uint32_t * | resolved_imports |
int | numimports |
char * | code_fixups |