Matt S Trout > Rakudo-Star-2012.08_001 > src/pmc/packfileopmap.pmc

Download:
Rakudo-Star-2012.08_001.tar.gz

Annotate this POD

Source  

NAME ^

src/pmc/packfileopmap.pmc - Packfile Op Map PMC

DESCRIPTION ^

This class implements a PackfileOpMap, which provides a map between op numbers in a bytecode segment and the libraries and offsets within those libraries that the ops come from.

Vtable functions

init

Create empty PackfileOpMap for a given op library.

get_integer_keyed

Return the integer which maps to the given op, if any. If the op is not already in the map, a new map will be created.

get_pmc_keyed_str()

Get Op PMC by name.

get_string_keyed_int()
get_pmc_keyed_int()

Lookup op name by mapped id.

void mark()

Marks the object as live.

INTVAL get_integer()

Get the number of opcode mappings.

METHOD load_lib

Ensure that an op library is loaded and accessible to this OpMap.

get_pointer

Construct PackFile_ByteCode_OpMapping.

Methods

PMC *oplibs()

Returns an hash of name to OpLib PMCs for all oplibs loaded in the map.

syntax highlighting: