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 interface
DynamicObjectBasic.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 boolean
checkExtensionArrayInvariants(Shape newShape)
Check whether the extension arrays are in accordance with the description in the shape.protected DynamicObject
cloneWithShape(Shape currentShape)
protected 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.protected 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.protected void
initialize(Shape shape)
protected void
reshape(ShapeImpl newShape)
protected void
resizeObjectStore(Shape oldShape, Shape newShape)
protected void
resizePrimitiveStore(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:
initialize
in 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:
growObjectStore
in 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:
growPrimitiveStore
in classDynamicObjectImpl
-
resizeObjectStore
protected final void resizeObjectStore(Shape oldShape, Shape newShape)
- Specified by:
resizeObjectStore
in classDynamicObjectImpl
-
resizePrimitiveStore
protected final void resizePrimitiveStore(Shape oldShape, Shape newShape)
- Specified by:
resizePrimitiveStore
in classDynamicObjectImpl
-
checkExtensionArrayInvariants
protected final boolean checkExtensionArrayInvariants(Shape newShape)
Check whether the extension arrays are in accordance with the description in the shape.- Specified by:
checkExtensionArrayInvariants
in classDynamicObjectImpl
-
cloneWithShape
protected final DynamicObject cloneWithShape(Shape currentShape)
- Specified by:
cloneWithShape
in classDynamicObjectImpl
-
reshape
protected final void reshape(ShapeImpl newShape)
-
-