Module process

Source
Expand description

ByteCode execution utilities.

Because the NetsBlox runtime allows for the creation of cycles, all program-accessible objects must be garbage collected. To do this, we use the gc-arena crate, which allows a simple and correct mechanism for provably disjoint garbage collected runtime environments. However, gc-arena makes this guarantee by forbidding garbage collected objects from leaving the arena. Thus, many types in this module, such as Value and Process, are branded with an invariant 'gc lifetime and can only be access by callback. Some utilities are provided to export these values from the runtime environment if needed.

Structs§

CallFrame
An entry in the call stack of a Process.
ErrorSummary
A error message in the structure expected by the standard js extension.
ExecError
An execution error from a Process (see Process::step).
ProcContext
A collection of context info for starting a new Process.
Process
A ByteCode execution primitive.
TraceEntry
A trace entry in the structure expected by the standard js extension.
VarEntry
A variable entry in the structure expected by the standard js extension.

Enums§

ProcessStep
Result of stepping through a Process.