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§
- Call
Frame - An entry in the call stack of a
Process
. - Error
Summary - A error message in the structure expected by the standard js extension.
- Exec
Error - An execution error from a
Process
(seeProcess::step
). - Proc
Context - A collection of context info for starting a new
Process
. - Process
- A
ByteCode
execution primitive. - Trace
Entry - 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§
- Process
Step - Result of stepping through a
Process
.