Package com.oracle.truffle.object.basic
Class BasicAllocator
- java.lang.Object
-
- com.oracle.truffle.api.object.Shape.Allocator
-
- com.oracle.truffle.object.ShapeImpl.BaseAllocator
-
- com.oracle.truffle.object.basic.BasicAllocator
-
public abstract class BasicAllocator extends ShapeImpl.BaseAllocator
-
-
Field Summary
-
Fields inherited from class com.oracle.truffle.object.ShapeImpl.BaseAllocator
depth, hasPrimitiveArray, layout, objectArraySize, objectFieldSize, primitiveArraySize, primitiveFieldSize
-
-
Constructor Summary
Constructors Constructor Description BasicAllocator(LayoutImpl layout)BasicAllocator(ShapeImpl shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LocationlocationForValueUpcast(java.lang.Object value, Location oldLocation)protected LocationmoveLocation(Location oldLocation)LocationnewBooleanLocation(boolean useFinal)protected Locations.DeclaredDualLocationnewDeclaredDualLocation(java.lang.Object value)LocationnewDoubleLocation(boolean useFinal)LocationnewIntLocation(boolean useFinal)LocationnewLongLocation(boolean useFinal)LocationnewObjectLocation(boolean useFinal, boolean nonNull)LocationnewTypedObjectLocation(boolean useFinal, java.lang.Class<?> type, boolean nonNull)-
Methods inherited from class com.oracle.truffle.object.ShapeImpl.BaseAllocator
addLocation, advance, constantLocation, locationForType, locationForValue, newDualLocation, newDualLocationForValue
-
Methods inherited from class com.oracle.truffle.api.object.Shape.Allocator
declaredLocation, locationForType, locationForType, locationForValue, locationForValue
-
-
-
-
Constructor Detail
-
BasicAllocator
public BasicAllocator(LayoutImpl layout)
-
BasicAllocator
public BasicAllocator(ShapeImpl shape)
-
-
Method Detail
-
moveLocation
protected Location moveLocation(Location oldLocation)
- Specified by:
moveLocationin classShapeImpl.BaseAllocator
-
newObjectLocation
public Location newObjectLocation(boolean useFinal, boolean nonNull)
- Specified by:
newObjectLocationin classShapeImpl.BaseAllocator
-
newTypedObjectLocation
public Location newTypedObjectLocation(boolean useFinal, java.lang.Class<?> type, boolean nonNull)
- Specified by:
newTypedObjectLocationin classShapeImpl.BaseAllocator
-
newIntLocation
public Location newIntLocation(boolean useFinal)
- Specified by:
newIntLocationin classShapeImpl.BaseAllocator
-
newDoubleLocation
public Location newDoubleLocation(boolean useFinal)
- Specified by:
newDoubleLocationin classShapeImpl.BaseAllocator
-
newLongLocation
public Location newLongLocation(boolean useFinal)
- Specified by:
newLongLocationin classShapeImpl.BaseAllocator
-
newBooleanLocation
public Location newBooleanLocation(boolean useFinal)
- Specified by:
newBooleanLocationin classShapeImpl.BaseAllocator
-
locationForValueUpcast
protected Location locationForValueUpcast(java.lang.Object value, Location oldLocation)
- Specified by:
locationForValueUpcastin classShapeImpl.BaseAllocator
-
newDeclaredDualLocation
protected Locations.DeclaredDualLocation newDeclaredDualLocation(java.lang.Object value)
- Overrides:
newDeclaredDualLocationin classShapeImpl.BaseAllocator
-
-