AngelScript
asSVMRegisters Struct Reference

A struct with registers from the VM sent to a JIT compiled function. More...

Public Attributes

asDWORDprogramPointer
 Points to the current bytecode instruction.
 
asDWORDstackFramePointer
 Function stack frame. This doesn't change during the function execution.
 
asDWORDstackPointer
 Top of the stack (grows downward)
 
asQWORD valueRegister
 Temporary register for primitives and unmanaged references.
 
void * objectRegister
 Temporary register for managed object references/handles.
 
asITypeInfoobjectType
 Type of the object held in the object register.
 
bool doProcessSuspend
 Set to true if the SUSPEND instruction should be processed. Do not update this value.
 
asIScriptContextctx
 The context to which the registers belong.
 

Detailed Description

The JIT compiled function will receive a pointer to this structure when called. It is the responsibility of the JIT compiled function to make sure these values are updated correctly before control is returned to the VM.

See also
How to build a JIT compiler

The documentation for this struct was generated from the following file: