public class DynamicObjectBasic extends DynamicObjectImpl
Modifier and Type | Class and Description |
---|---|
protected static interface |
DynamicObjectBasic.DynamicField |
DynamicObject.FlagsFunction
reshapeCount
Constructor and Description |
---|
DynamicObjectBasic(Shape shape) |
Modifier and Type | Method and 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 of
resizeObjectStore(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 of
resizePrimitiveStore(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) |
changeFlags, changeFlags, clone, copyProperties, debugDump, debugDump, define, define, delete, equals, get, getShape, getTypeIdentifier, hashCode, isEmpty, set, setShape, setShapeAndGrow, setShapeAndResize, setShapeAndResize, size, toString, updateShape
public DynamicObjectBasic(Shape shape)
protected final void initialize(Shape shape)
initialize
in class DynamicObjectImpl
protected final void growObjectStore(Shape oldShape, Shape newShape)
resizeObjectStore(com.oracle.truffle.api.object.Shape, com.oracle.truffle.api.object.Shape)
when the object is only increasing in size.growObjectStore
in class DynamicObjectImpl
protected final void growPrimitiveStore(Shape oldShape, Shape newShape)
resizePrimitiveStore(com.oracle.truffle.api.object.Shape, com.oracle.truffle.api.object.Shape)
when the object is only increasing in size.growPrimitiveStore
in class DynamicObjectImpl
protected final void resizeObjectStore(Shape oldShape, Shape newShape)
resizeObjectStore
in class DynamicObjectImpl
protected final void resizePrimitiveStore(Shape oldShape, Shape newShape)
resizePrimitiveStore
in class DynamicObjectImpl
protected final boolean checkExtensionArrayInvariants(Shape newShape)
checkExtensionArrayInvariants
in class DynamicObjectImpl
protected final DynamicObject cloneWithShape(Shape currentShape)
cloneWithShape
in class DynamicObjectImpl
protected final void reshape(ShapeImpl newShape)