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
,Cloneable
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected final boolean
checkExtensionArrayInvariants
(Shape newShape) Check whether the extension arrays are in accordance with the description in the shape.protected final DynamicObject
cloneWithShape
(Shape currentShape) 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.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.protected final void
initialize
(Shape shape) protected final void
protected final void
resizeObjectStore
(Shape oldShape, Shape newShape) protected final 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 Details
-
DynamicObjectBasic
-
-
Method Details
-
initialize
- Specified by:
initialize
in classDynamicObjectImpl
-
growObjectStore
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
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
- Specified by:
resizeObjectStore
in classDynamicObjectImpl
-
resizePrimitiveStore
- Specified by:
resizePrimitiveStore
in classDynamicObjectImpl
-
checkExtensionArrayInvariants
Check whether the extension arrays are in accordance with the description in the shape.- Specified by:
checkExtensionArrayInvariants
in classDynamicObjectImpl
-
cloneWithShape
- Specified by:
cloneWithShape
in classDynamicObjectImpl
-
reshape
-