50using ReferenceManager::SafePointer;
51using ReferenceManager::SectionKey;
52using ReferenceManager::SectionOffsetKey;
53using ReferenceManager::SectionIndexKey;
119 assert((guard == 0) || (guard ==
'!') || (guard ==
'?'));
234 return reg - regOffset;
#define assert(condition)
static const Word FIRST_INT_REGISTER
Index of the first integer register in a.out.
static const Word FIRST_BOOL_REGISTER
Index of the first Boolean register.
static const Word FIRST_FU_REGISTER
Index of the first function unit register.
static const Word FIRST_FP_REGISTER
Index of the first floating-point register.
static const Header & header()
virtual BinaryReader * parent() const
Word convertAOutIndexToTPEF(const Word reg) const
void updateMoveSource(MoveElement *move, const Word src) const
void initializeMove(BinaryStream &stream, MoveElement *move) const
static const int OFFSET_TO_IMMEDIATE_VALUE
static AOutTextSectionReader proto_
Prototype to be registered to SectionReader.
virtual void readData(BinaryStream &stream, Section *section) const
void setReference(InstructionElement *elem, SectionOffset sectionOffset, SectionId sectionID) const
virtual Section::SectionType type() const
void initializeImmediateMove(BinaryStream &stream, MoveElement *move, ImmediateElement *immediate) const
virtual ~AOutTextSectionReader()
void updateMoveDestination(MoveElement *move, const HalfWord dest) const
unsigned int readPosition()
void setBegin(bool isBegin)
void setGuardIndex(HalfWord aGuardIndex)
void setSourceType(FieldType aType)
void setGuardInverted(bool flag)
void setSourceIndex(HalfWord aSourceIndex)
void setBus(HalfWord aBus)
void setDestinationUnit(HalfWord aDestinationUnit)
void setGuarded(bool flag)
void setSourceUnit(HalfWord aSourceUnit)
void setGuardUnit(HalfWord aGuardUnit)
void setDestinationIndex(HalfWord aDestinationIndex)
void setDestinationType(FieldType aType)
void setGuardType(FieldType gType)
static void addObjectReference(SectionIndexKey key, const SafePointable *obj)
@ UNIVERSAL_BUS
Universal bus.
@ UNIVERSAL_FU
Universal function unit.
@ INT_RF
Universal integer register file.
@ BOOL_RF
Universal boolean register file.
@ FP_RF
Universal floating point register file.
@ INLINE_IMM
Inline immediate unit id.
static void registerSectionReader(const SectionReader *sReader)
virtual void addElement(SectionElement *element)
HalfWord SectionId
Type for storing binary file section ids.
Word SectionOffset
Type for storing offsets relative to a given base offset value.
Word FileOffset
Type for storing absolute file offsets.