Package com.oracle.truffle.object
Class ShapeImpl.BaseAllocator
java.lang.Object
com.oracle.truffle.api.object.Shape.Allocator
com.oracle.truffle.object.ShapeImpl.BaseAllocator
- Direct Known Subclasses:
BasicAllocator
- Enclosing class:
- ShapeImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected boolean
protected final LayoutImpl
protected int
protected int
protected int
protected int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseAllocator
(LayoutImpl layout) protected
BaseAllocator
(ShapeImpl shape) -
Method Summary
Modifier and TypeMethodDescriptionaddLocation
(Location location) protected <T extends Location>
Tadvance
(T location0) final Location
constantLocation
(Object value) protected Location
locationForType
(Class<?> type, boolean useFinal, boolean nonNull) protected Location
locationForValue
(Object value, boolean useFinal, boolean nonNull) protected abstract Location
locationForValueUpcast
(Object value, Location oldLocation) protected abstract Location
moveLocation
(Location oldLocation) protected abstract Location
newBooleanLocation
(boolean useFinal) protected Location
newDeclaredDualLocation
(Object value) protected abstract Location
newDoubleLocation
(boolean useFinal) protected Location
newDualLocation
(Class<?> type) protected Locations.DualLocation
newDualLocationForValue
(Object value) protected abstract Location
newIntLocation
(boolean useFinal) protected abstract Location
newLongLocation
(boolean useFinal) protected abstract Location
newObjectLocation
(boolean useFinal, boolean nonNull) protected abstract Location
newTypedObjectLocation
(boolean useFinal, Class<?> type, boolean nonNull) Methods inherited from class com.oracle.truffle.api.object.Shape.Allocator
declaredLocation, locationForType, locationForType, locationForValue, locationForValue
-
Field Details
-
layout
-
objectArraySize
protected int objectArraySize -
objectFieldSize
protected int objectFieldSize -
primitiveFieldSize
protected int primitiveFieldSize -
primitiveArraySize
protected int primitiveArraySize -
hasPrimitiveArray
protected boolean hasPrimitiveArray -
depth
protected int depth
-
-
Constructor Details
-
BaseAllocator
-
BaseAllocator
-
-
Method Details
-
moveLocation
-
newObjectLocation
-
newTypedObjectLocation
-
newIntLocation
-
newDoubleLocation
-
newLongLocation
-
newBooleanLocation
-
constantLocation
- Specified by:
constantLocation
in classShape.Allocator
-
locationForValue
- Specified by:
locationForValue
in classShape.Allocator
-
locationForValueUpcast
-
locationForType
- Specified by:
locationForType
in classShape.Allocator
-
newDualLocation
-
newDualLocationForValue
-
newDeclaredDualLocation
-
advance
-
addLocation
- Specified by:
addLocation
in classShape.Allocator
-