|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Backend.Maps.FieldMap
harpoon.Backend.RuntimeTiny.TinyPackedClassFieldMap
public abstract class TinyPackedClassFieldMap
PackedClassFieldMap
is a FieldMap
for
non-static fields of a class which attempts to maximally fill holes
in the data structure (even if this means commingling a subclass'
fields with those of its superclass) in order to minimize the
space required by objects.
Constructor Summary | |
---|---|
TinyPackedClassFieldMap(Runtime runtime)
Creates a PackedClassFieldMap . |
Method Summary | |
---|---|
List<HField> |
fieldList(HClass hc)
Return an unmodifiable List over all appropriate fields in the given class, in order from smallest to largest offset. |
int |
fieldOffset(HField hf)
Return an offset to the given field. |
int |
fieldPreferredAlignment(HField hf)
Override this function to indicate a *preferred* but not *mandatory* alignment for the given field. |
Methods inherited from class harpoon.Backend.Maps.FieldMap |
---|
fieldAlignment, fieldSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TinyPackedClassFieldMap(Runtime runtime)
PackedClassFieldMap
.
Method Detail |
---|
public int fieldPreferredAlignment(HField hf)
public int fieldOffset(HField hf)
fieldOffset
in class FieldMap
public List<HField> fieldList(HClass hc)
fieldList
in class FieldMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |