NAME

src/pmc/packfilebytecodesegment.pmc - PackfileBytecodeSegment PMC

DESCRIPTION

This class implements a PackfileBytecode class, providing a PMC-based interface for bytecode creation and manipulation.

See packfile.pmc for the toplevel Packfile interface; see PDD13 for the design spec.

Methods

void init()
Initialize PackfileBytecodeSegment.
void mark()
Marks the object as live.
void *get_pointer()
Return a pointer to a PackFile_ByteCode* built from this PMC's data.
void push_pmc()
Add an op and its arguments to this bytecode. The PMC should be a ResizablePMCArray with the first PMC being a String containing the full name of an op and the remaining PMCs being Integers.
INTVAL get_integer_keyed_int(INTVAL key)
INTVAL get_pmc_keyed_int(INTVAL key)
INTVAL get_pmc_keyed(PMC *key)
Fetch an integer's worth of data from the segment.
INTVAL elements()
INTVAL get_integer()
INTVAL get_number()
Get the number of elements in the array.
void set_integer_keyed_int(INTVAL key, INTVAL value)
Set an integer's worth of data in the segment.
PMC* opmap()
Return PackfileOpMap for this BytecodeSegment.