Package com.oracle.truffle.object.basic
Class DynamicObjectBasic
- java.lang.Object
-
- com.oracle.truffle.object.DynamicObjectImpl
-
- com.oracle.truffle.object.basic.DynamicObjectBasic
-
- All Implemented Interfaces:
DynamicObject,TypedObject,java.lang.Cloneable
public class DynamicObjectBasic extends DynamicObjectImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceDynamicObjectBasic.DynamicField-
Nested classes/interfaces inherited from interface com.oracle.truffle.api.object.DynamicObject
DynamicObject.FlagsFunction
-
-
Field Summary
-
Fields inherited from class com.oracle.truffle.object.DynamicObjectImpl
reshapeCount
-
-
Constructor Summary
Constructors Constructor Description DynamicObjectBasic(Shape shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckExtensionArrayInvariants(Shape newShape)Check whether the extension arrays are in accordance with the description in the shape.protected DynamicObjectcloneWithShape(Shape currentShape)protected voidgrowObjectStore(Shape oldShape, Shape newShape)Simpler version ofresizeObjectStore(com.oracle.truffle.api.object.Shape, com.oracle.truffle.api.object.Shape)when the object is only increasing in size.protected voidgrowPrimitiveStore(Shape oldShape, Shape newShape)Simpler version ofresizePrimitiveStore(com.oracle.truffle.api.object.Shape, com.oracle.truffle.api.object.Shape)when the object is only increasing in size.protected voidinitialize(Shape shape)protected voidreshape(ShapeImpl newShape)protected voidresizeObjectStore(Shape oldShape, Shape newShape)protected voidresizePrimitiveStore(Shape oldShape, Shape newShape)-
Methods inherited from class com.oracle.truffle.object.DynamicObjectImpl
changeFlags, changeFlags, clone, copyProperties, debugDump, debugDump, define, define, delete, equals, get, getShape, getTypeIdentifier, hashCode, isEmpty, set, setShape, setShapeAndGrow, setShapeAndResize, setShapeAndResize, size, toString, updateShape
-
-
-
-
Constructor Detail
-
DynamicObjectBasic
public DynamicObjectBasic(Shape shape)
-
-
Method Detail
-
initialize
protected final void initialize(Shape shape)
- Specified by:
initializein classDynamicObjectImpl
-
growObjectStore
protected final void growObjectStore(Shape oldShape, Shape newShape)
Simpler version ofresizeObjectStore(com.oracle.truffle.api.object.Shape, com.oracle.truffle.api.object.Shape)when the object is only increasing in size.- Specified by:
growObjectStorein classDynamicObjectImpl
-
growPrimitiveStore
protected final void growPrimitiveStore(Shape oldShape, Shape newShape)
Simpler version ofresizePrimitiveStore(com.oracle.truffle.api.object.Shape, com.oracle.truffle.api.object.Shape)when the object is only increasing in size.- Specified by:
growPrimitiveStorein classDynamicObjectImpl
-
resizeObjectStore
protected final void resizeObjectStore(Shape oldShape, Shape newShape)
- Specified by:
resizeObjectStorein classDynamicObjectImpl
-
resizePrimitiveStore
protected final void resizePrimitiveStore(Shape oldShape, Shape newShape)
- Specified by:
resizePrimitiveStorein classDynamicObjectImpl
-
checkExtensionArrayInvariants
protected final boolean checkExtensionArrayInvariants(Shape newShape)
Check whether the extension arrays are in accordance with the description in the shape.- Specified by:
checkExtensionArrayInvariantsin classDynamicObjectImpl
-
cloneWithShape
protected final DynamicObject cloneWithShape(Shape currentShape)
- Specified by:
cloneWithShapein classDynamicObjectImpl
-
reshape
protected final void reshape(ShapeImpl newShape)
-
-