ctor
Queue a fiber last.
Add fiber to front.
For coroutines (and in the future threads.)
Whether or not there is an exception flag set
Get the last value from opPop
prints an individual instruction without moving the ip
print a program instruction by instruction, using the const table to indicate values
print the current contents of the stack
Removes a ScriptFiber from the queue
Runs the queued fibers repeatedly until they are done. This is called by Interpreter.runVMFibers
This method provides a common interface for calling any ScriptFunction under the same compilation unit as the initial program. It should not be used to run "foreign" functions with a different const table. Use runProgram for that. This method may throw ScriptRuntimeException. Such an exception is caught at opNew and opCall boundaries and propagated or caught by the script.
Runs a compiled program
Sets the exception flag of the VM. This is checked after each opCall for Generators
This class implements a virtual machine that runs Chunks of bytecode. This class is not thread safe and a copy() of the VM should be instantiated to run scripts in multiple threads. The Environments are shallow copied and not guaranteed to be thread safe either.