|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Backend.Maps.FieldMap
harpoon.Backend.Analysis.ClassFieldMap
harpoon.Backend.RuntimeTiny.TinyClassFieldMap
public abstract class TinyClassFieldMap
TinyClassFieldMap
is an extension of ClassFieldMap
which lays out objects *attempting* to align them, but not forcing an
alignment.
Constructor Summary | |
---|---|
TinyClassFieldMap()
Creates a TinyClassFieldMap . |
|
TinyClassFieldMap(int first_alignment)
Creates a TinyClassFieldMap . |
Method Summary | |
---|---|
protected HField[] |
declaredFields(HClass hc)
Return the declared fields of the specified class in the order in which they should be allocated. |
int |
fieldOffset(HField hf)
Return an offset to the given field. |
int |
fieldPreferredAlignment(HField hf)
Use this function to indicate a *preferred* but not *mandatory* alignment for the given field. |
Methods inherited from class harpoon.Backend.Analysis.ClassFieldMap |
---|
fieldList |
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 TinyClassFieldMap()
TinyClassFieldMap
.
public TinyClassFieldMap(int first_alignment)
TinyClassFieldMap
.
Method Detail |
---|
public int fieldPreferredAlignment(HField hf)
protected HField[] declaredFields(HClass hc)
ClassFieldMap
hc.getDeclaredFields()
,
but you can override this to use a more intelligent sorting
routine to save space. You do not have to filter static methods
out of the returned array, but you may if you like.
declaredFields
in class ClassFieldMap
public int fieldOffset(HField hf)
FieldMap
fieldOffset
in class ClassFieldMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |