VM class

Constructors

VM(DynamicLibrary lib, Configuration config)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slotCount int
Returns the number of slots available to the current foreign method.
no setter

Methods

collectGarbage() → void
Immediately run the garbage collector to free unused memory.
ensureSlots(int numSlots) → void
Ensures that the foreign method stack has at least numSlots available for use, growing the stack if needed.
free() → void
Frees the memory used by the VM. It shouldn't be used after this
getSlot<T>(int index) → T
Gets the value of the slot at index as a T
getSlotType(int index) → WType
Gets the type of the slot at index
interpret(String moduleName, String source) int
Runs source, a string of Wren source code in a new fiber in this VM in the context of resolved moduleName.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSlot<T>(int index, T value) → void
Stores the T value in slot index.
setSlotNull(int index) → void
Sets the slot at index to null
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited