|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.objectmodel.FieldLayoutContext
org.jikesrvm.objectmodel.FieldLayoutPacked.LayoutContext
private static class FieldLayoutPacked.LayoutContext
Lay out an object, maintaining offsets of free slots of size 1,2,4 and 8 bytes.
| Field Summary | |
|---|---|
private static int |
LOG_MAX_SLOT_SIZE
|
private static int |
MAX_SLOT_SIZE
|
private short |
slot0
|
private short |
slot1
|
private short |
slot2
|
| Fields inherited from class org.jikesrvm.objectmodel.FieldLayoutContext |
|---|
OBJECT_SIZE_ALIGN |
| Constructor Summary | |
|---|---|
FieldLayoutPacked.LayoutContext(byte alignment)
Create a layout for an object without a superclass (ie j.l.Object). |
|
FieldLayoutPacked.LayoutContext(byte alignment,
FieldLayoutPacked.LayoutContext superLayout)
Create a layout for an object, initializing offsets from its superclass. |
|
| Method Summary | |
|---|---|
private short |
get(int logSize)
Get the value for a given slot. |
(package private) int |
nextOffset(int size,
boolean isReference)
Return the next available offset for a given size |
private void |
set(int logSize,
int value)
Set the value for a given slot. |
| Methods inherited from class org.jikesrvm.objectmodel.FieldLayoutContext |
|---|
adjustAlignment, ensureObjectSize, getAlignment, getObjectSize, setObjectSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int LOG_MAX_SLOT_SIZE
private static final int MAX_SLOT_SIZE
private short slot0
private short slot1
private short slot2
| Constructor Detail |
|---|
FieldLayoutPacked.LayoutContext(byte alignment)
alignment -
FieldLayoutPacked.LayoutContext(byte alignment,
FieldLayoutPacked.LayoutContext superLayout)
alignment - Current alignment of first field.superLayout - Superclass layout context| Method Detail |
|---|
private short get(int logSize)
private void set(int logSize,
int value)
int nextOffset(int size,
boolean isReference)
nextOffset in class FieldLayoutContextsize - Size of the field to be laid out. Must be
a power of 2.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||