Expand description
Bytecode instruction set for Shape VM
Modules§
- verifier
- Bytecode verifier for trusted opcodes.
Structs§
- Bytecode
Program - A compiled bytecode program
- Compiled
Annotation - A compiled annotation definition.
- Data
Frame Schema - Debug
Info - Debug information for better error messages
- Deopt
Info - Metadata for deoptimization – maps JIT state back to interpreter state.
- Foreign
Function Entry - Metadata for a foreign function stored in the program. The compiler creates these; the engine links them to language runtimes before execution.
- Function
- Function definition in bytecode
- Function
Blob - A self-contained, content-addressed function blob.
- Function
Hash - Inline
Frame Info - Metadata for a single caller frame in a multi-frame inline deopt.
- Instruction
- A bytecode instruction with its operands
- Linked
Function - A linked function ready for execution in a flat instruction array.
- Linked
Program - A linked, execution-ready program with flat instruction/constant/string arrays.
- Native
AbiSpec - Native C ABI metadata stored alongside a foreign function entry.
- Native
Struct Field Layout - Native field layout metadata for one struct field.
- Native
Struct Layout Entry - Native
type Clayout entry emitted by the compiler. - OsrEntry
Point - Metadata for an OSR entry point (typically a loop header).
- Program
- A content-addressed program: a set of
FunctionBlobs plus program-level metadata. - Source
Map - Source file table for multi-file programs
- String
Id - Re-export
StringIdfromshape-value— the canonical definition. A string pool identifier. Indexes intoBytecodeProgram::strings.
Enums§
- Builtin
Function - Built-in functions
- Constant
- Constants in the constant pool
- Numeric
Width - Numeric width tag for compact typed opcodes (AddTyped, SubTyped, etc.).
- OpCode
- Opcode
Category - Opcode category for classification and tooling.
- Operand
- Instruction operands