241 int last = instrCount - 1;
242 Word key = elementIndex;
247 while (first <= last) {
248 middle = (first + last) / 2;
#define assert(condition)
bool isInSection(const InstructionElement &elem) const
virtual SectionType type() const
virtual InstructionElement * element(Word index) const
static CodeSection proto_
Prototype instance of section.
InstructionElement & instruction(Word index) const
virtual Section * clone() const
Word instructionToSectionIndex(Word index) const
virtual void addElement(SectionElement *element)
Word instructionCount() const
void initInstructionCache() const
Word indexOfInstruction(const InstructionElement &elem) const
virtual void setElement(Word index, SectionElement *element)
std::vector< Word > instructionStartCache_
Cache vector of element indexes of those instruction elements, which begins a new instruction.
Word indexOfElement(const InstructionElement &elem) const
void clearInstructionCache() const
std::map< const InstructionElement *, Word > elementIndexCache_
Cache of indexes of instruction elemenets.
virtual void setElement(Word index, SectionElement *element)
static void registerSection(const Section *section)
virtual void addElement(SectionElement *element)
SectionElement * element(Word index) const
Word elementCount() const