CACAO
Data Structures | Public Member Functions | Private Attributes
LinenumberTable Class Reference

Linenumber table of a Java method. More...

Data Structures

class  comparator
 

Public Member Functions

 LinenumberTable (jitdata *jd)
 Creates a linenumber table. More...
 
 ~LinenumberTable ()
 
int32_t find (methodinfo **pm, void *pc)
 Search the the line number table for the line corresponding to a given program counter. More...
 

Private Attributes

std::vector< Linenumber_linenumbers
 

Detailed Description

Linenumber table of a Java method.

Definition at line 86 of file linenumbertable.hpp.

Constructor & Destructor Documentation

LinenumberTable::LinenumberTable ( jitdata jd)

Creates a linenumber table.

We allocate an array and store the linenumber entry in reverse-order, so we can search the correct linenumber more easily.

Parameters
jdJIT data.

Definition at line 74 of file linenumbertable.cpp.

LinenumberTable::~LinenumberTable ( )

Member Function Documentation

int32_t LinenumberTable::find ( methodinfo **  pm,
void pc 
)

Search the the line number table for the line corresponding to a given program counter.

Parameters
pcProgram counter.
Returns
Line number.

Definition at line 97 of file linenumbertable.cpp.

Field Documentation

std::vector<Linenumber> LinenumberTable::_linenumbers
private

Definition at line 88 of file linenumbertable.hpp.


The documentation for this class was generated from the following files: