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 intprotected booleanprotected final LayoutImplprotected intprotected intprotected intprotected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseAllocator(LayoutImpl layout) protectedBaseAllocator(ShapeImpl shape) -
Method Summary
Modifier and TypeMethodDescriptionaddLocation(Location location) protected <T extends Location>
Tadvance(T location0) final LocationconstantLocation(Object value) protected LocationlocationForType(Class<?> type, boolean useFinal, boolean nonNull) protected LocationlocationForValue(Object value, boolean useFinal, boolean nonNull) protected abstract LocationlocationForValueUpcast(Object value, Location oldLocation) protected abstract LocationmoveLocation(Location oldLocation) protected abstract LocationnewBooleanLocation(boolean useFinal) protected LocationnewDeclaredDualLocation(Object value) protected abstract LocationnewDoubleLocation(boolean useFinal) protected LocationnewDualLocation(Class<?> type) protected Locations.DualLocationnewDualLocationForValue(Object value) protected abstract LocationnewIntLocation(boolean useFinal) protected abstract LocationnewLongLocation(boolean useFinal) protected abstract LocationnewObjectLocation(boolean useFinal, boolean nonNull) protected abstract LocationnewTypedObjectLocation(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:
constantLocationin classShape.Allocator
-
locationForValue
- Specified by:
locationForValuein classShape.Allocator
-
locationForValueUpcast
-
locationForType
- Specified by:
locationForTypein classShape.Allocator
-
newDualLocation
-
newDualLocationForValue
-
newDeclaredDualLocation
-
advance
-
addLocation
- Specified by:
addLocationin classShape.Allocator
-