Go to the documentation of this file.
40 using ReferenceManager::SafePointer;
41 using ReferenceManager::SectionIndexKey;
127 bool unsupportedFieldSizeOfReplacement =
false;
128 assert(unsupportedFieldSizeOfReplacement);
SectionIndexReplacer(const SafePointable *obj, Byte fieldSize)
void writeHalfWord(HalfWord halfword)
SectionIndex index() const
void writeWord(Word word)
const Byte fieldSize_
Field how many bytes of stream are replaced with section index.
#define assert(condition)
static BinaryStream & stream()
void writeReplacement(Word value)
void setWritePosition(unsigned int position)
virtual bool tryToReplace()
virtual ~SectionIndexReplacer()
void writeByte(Byte byte)
unsigned int streamPosition() const
static SectionIndexKey sectionIndexKeyFor(const SafePointable *obj)
virtual ValueReplacer * clone()
const Byte HALFWORD_BITWIDTH
const SafePointable * reference() const