Aseba  1.5.5
Public Types | Public Member Functions | Public Attributes | List of all members
Aseba::BytecodeVector Struct Reference

Bytecode array in the form of a dequeue, for construction. More...

#include <compiler.h>

Inheritance diagram for Aseba::BytecodeVector:

Public Types

typedef std::map< unsigned, unsigned > EventAddressesToIdsMap
 A map of event addresses to identifiers.
 

Public Member Functions

 BytecodeVector ()
 Constructor.
 
void push_back (const BytecodeElement &be)
 
void changeStopToRetSub ()
 Change "stop" bytecode to "return from subroutine".
 
unsigned short getTypeOfLast () const
 Return the type of last bytecode element.
 
EventAddressesToIdsMap getEventAddressesToIds () const
 Get the map of event addresses to identifiers.
 

Public Attributes

unsigned maxStackDepth
 maximum depth of the stack used by all the computations of the bytecode
 
unsigned callDepth
 for callable bytecode (i.e. More...
 
unsigned lastLine
 last line added, normally equal *this[this->size()-1].line, but may differ for instance on loops
 

Detailed Description

Bytecode array in the form of a dequeue, for construction.

Member Data Documentation

unsigned Aseba::BytecodeVector::callDepth

for callable bytecode (i.e.

subroutines), used in analysis of stack check


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