VM

private class
system.VM

Description

The VM class represents a virtual machine in LoomScript.

API overview

Constructor

VM ()

Attributes

Public attributes

onReload: NativeDelegate native

Delegate that is called whenever the VM has reloaded

ticks: TickDelegate static

Delegate that is called whenever the main VM ticks

Functions

Public functions

close (): Void native

Close the VM (internal)

dumpManagedNatives (): Void native

Print a report showing information about all allocated native structures

getExecutingVM (): VM static native

Return a reference to the currently executing VM

getStackSize (): Number native

Return the depth of the underlying Lua stack (internal)

isJIT (): Boolean static native

True when we are executing under the JIT

open (): Void native

Open the VM (internal)

Constructor

VM ()

Attributes

onReload: NativeDelegate

native

Delegate that is called whenever the VM has reloaded.

ticks: TickDelegate

static

Delegate that is called whenever the main VM ticks.

Functions

close (): Void

native

Close the VM (internal).



dumpManagedNatives (): Void

native

Print a report showing information about all allocated native structures.



getExecutingVM (): VM

static native

Return a reference to the currently executing VM.



getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getStackSize (): Number

native

Return the depth of the underlying Lua stack (internal).



getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

isJIT (): Boolean

static native

True when we are executing under the JIT.



open (): Void

native

Open the VM (internal).



toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

: