[][src]Module passerine::common::opcode

Enums

Opcode

This enum represents a single opcode. Under the hood, it's just a byte. This allows non opcode bytes to be inserted in bytecode streams. | Opcode | operands, top first | byte-streams | Does | | ------ | ------------------- | ------------ | ---------------------------------------------- | | Con | | Const Index | Pushes value from constant table onto stack | | Save | Data | | Stores Data in Symbol | | Load | | Local Index | Replaces symbol on top of stack with its value | | Clear | | | Clears stack to last frame/local | | Call | Fun, Data | | Calls the function passing Data as arg | | Return | Data | | Clears the frame, leaving value on the stack |