Torque3D Documentation / _generateds / CodeInterpreter

CodeInterpreter

Engine/source/console/codeInterpreter.h

More...

Public User Defined

Group op codes.

Public Functions

exec(U32 ip, StringTableEntry functionName, Namespace * thisNamespace, U32 argc, ConsoleValueRef * argv, bool noCalls, StringTableEntry packageName, S32 setFrame)

Public Static Functions

Private Functions

Detailed Description

Public User Defined

op_func_decl(U32 & ip)

Group op codes.

op_create_object(U32 & ip)

op_add_object(U32 & ip)

op_end_object(U32 & ip)

op_finish_object(U32 & ip)

op_jmpiffnot(U32 & ip)

op_jmpifnot(U32 & ip)

op_jmpiff(U32 & ip)

op_jmpif(U32 & ip)

op_jmpifnot_np(U32 & ip)

op_jmpif_np(U32 & ip)

op_jmp(U32 & ip)

op_return_void(U32 & ip)

op_return(U32 & ip)

op_return_flt(U32 & ip)

op_return_uint(U32 & ip)

op_cmpeq(U32 & ip)

op_cmpgr(U32 & ip)

op_cmpge(U32 & ip)

op_cmplt(U32 & ip)

op_cmple(U32 & ip)

op_cmpne(U32 & ip)

op_xor(U32 & ip)

op_mod(U32 & ip)

op_bitand(U32 & ip)

op_bitor(U32 & ip)

op_not(U32 & ip)

op_notf(U32 & ip)

op_onescomplement(U32 & ip)

op_shr(U32 & ip)

op_shl(U32 & ip)

op_and(U32 & ip)

op_or(U32 & ip)

op_add(U32 & ip)

op_sub(U32 & ip)

op_mul(U32 & ip)

op_div(U32 & ip)

op_neg(U32 & ip)

op_inc(U32 & ip)

op_dec(U32 & ip)

op_setcurvar(U32 & ip)

op_setcurvar_create(U32 & ip)

op_setcurvar_array(U32 & ip)

op_setcurvar_array_varlookup(U32 & ip)

op_setcurvar_array_create(U32 & ip)

op_setcurvar_array_create_varlookup(U32 & ip)

op_loadvar_uint(U32 & ip)

op_loadvar_flt(U32 & ip)

op_loadvar_str(U32 & ip)

op_loadvar_var(U32 & ip)

op_savevar_uint(U32 & ip)

op_savevar_flt(U32 & ip)

op_savevar_str(U32 & ip)

op_savevar_var(U32 & ip)

op_setcurobject(U32 & ip)

op_setcurobject_internal(U32 & ip)

op_setcurobject_new(U32 & ip)

op_setcurfield(U32 & ip)

op_setcurfield_array(U32 & ip)

op_setcurfield_type(U32 & ip)

op_setcurfield_this(U32 & ip)

op_setcurfield_array_var(U32 & ip)

op_loadfield_uint(U32 & ip)

op_loadfield_flt(U32 & ip)

op_loadfield_str(U32 & ip)

op_savefield_uint(U32 & ip)

op_savefield_flt(U32 & ip)

op_savefield_str(U32 & ip)

op_str_to_uint(U32 & ip)

op_str_to_flt(U32 & ip)

op_str_to_none(U32 & ip)

op_flt_to_uint(U32 & ip)

op_flt_to_str(U32 & ip)

op_flt_to_none(U32 & ip)

op_uint_to_flt(U32 & ip)

op_uint_to_str(U32 & ip)

op_uint_to_none(U32 & ip)

op_copyvar_to_none(U32 & ip)

op_loadimmed_uint(U32 & ip)

op_loadimmed_flt(U32 & ip)

op_tag_to_str(U32 & ip)

op_loadimmed_str(U32 & ip)

op_docblock_str(U32 & ip)

op_loadimmed_ident(U32 & ip)

op_callfunc_resolve(U32 & ip)

op_callfunc(U32 & ip)

op_callfunc_pointer(U32 & ip)

op_callfunc_this(U32 & ip)

op_advance_str(U32 & ip)

op_advance_str_appendchar(U32 & ip)

op_advance_str_comma(U32 & ip)

op_advance_str_nul(U32 & ip)

op_rewind_str(U32 & ip)

op_terminate_rewind_str(U32 & ip)

op_compare_str(U32 & ip)

op_push(U32 & ip)

op_push_uint(U32 & ip)

op_push_flt(U32 & ip)

op_push_var(U32 & ip)

op_push_this(U32 & ip)

op_push_frame(U32 & ip)

op_assert(U32 & ip)

op_break(U32 & ip)

op_iter_begin_str(U32 & ip)

op_iter_begin(U32 & ip)

op_iter(U32 & ip)

op_iter_end(U32 & ip)

op_invalid(U32 & ip)

Private Attributes

U32 mCallArgc 
ConsoleValueRef * mCallArgv 
CodeBlock * mCodeBlock 
StringTableEntry mCurField 
F64 * mCurFloatTable 
StringTableEntry mCurFNDocBlock 
StringTableEntry mCurNSDocBlock 
SimObject * mCurObject 
U32 mCurrentInstruction 
SimObject * mCurrentNewObject 
char * mCurStringTable 
struct CodeInterpreter::@48 mExec 

Group exec arguments.

U32 mFailJump 
U32 mIterDepth 
char mNSDocBlockClass [nsDocLength]
Namespace::Entry * mNSEntry 
struct CodeInterpreter::@49 mObjectCreationStack [objectCreationStackSize]
U32 mObjectCreationStackIndex 
bool mPopFrame 
StringTableEntry mPrevField 
SimObject * mPrevObject 
ConsoleValueRef mReturnValue 
CodeBlock * mSaveCodeBlock 
SimObject * mSaveObject 
StringTableEntry mThisFunctionName 
SimObject * mThisObject 

Public Attributes

U32 argc 
ConsoleValueRef * argv 
U32 failJump 
StringTableEntry functionName 
SimObject * newObject 
bool noCalls 
StringTableEntry packageName 
S32 setFrame 
Namespace * thisNamespace 

Private Static Attributes

const S32 nsDocLength 
const U32 objectCreationStackSize 

Public Functions

CodeInterpreter(CodeBlock * cb)

~CodeInterpreter()

exec(U32 ip, StringTableEntry functionName, Namespace * thisNamespace, U32 argc, ConsoleValueRef * argv, bool noCalls, StringTableEntry packageName, S32 setFrame)

Public Static Functions

init()

Private Functions

parseArgs(U32 & ip)