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