KrkCallFrame Struct Reference
Represents a managed call state in a VM thread. More...
#include <vm.h>
Data Fields | |
KrkClosure * | closure |
uint8_t * | ip |
size_t | slots |
size_t | outSlots |
KrkTable * | globals |
KrkValue | globalsOwner |
Detailed Description
Represents a managed call state in a VM thread.
For every managed function call, including the top-level module, a call frame is added to the stack to track the running function, the current opcode instruction, the offset into the stack, and the valid globals table.
Call frames are used directly by the VM as the source of opcodes and operands during execution, and are used by the exception handler to roll back execution to the appropriate environment.
Field Documentation
◆ closure
KrkClosure* KrkCallFrame::closure |
◆ globals
KrkTable* KrkCallFrame::globals |
◆ globalsOwner
KrkValue KrkCallFrame::globalsOwner |
◆ ip
uint8_t* KrkCallFrame::ip |
◆ outSlots
size_t KrkCallFrame::outSlots |
◆ slots
size_t KrkCallFrame::slots |
The documentation for this struct was generated from the following file:
- src/kuroko/vm.h