Package com.oracle.truffle.object.basic
Class BasicLayout
java.lang.Object
com.oracle.truffle.api.object.Layout
com.oracle.truffle.object.LayoutImpl
com.oracle.truffle.object.basic.BasicLayout
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.object.Layout
Layout.ImplicitCast
-
Field Summary
Fields inherited from class com.oracle.truffle.api.object.Layout
INT_TO_DOUBLE, INT_TO_LONG, NONE, OPTION_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionCreate an allocator for static property creation.createShape
(ObjectType operations, Object sharedData, int id) protected Location
protected int
protected ObjectLocation
getObjectFieldLocation
(int index) protected Location
protected int
protected LocationImpl.InternalLongLocation
getPrimitiveFieldLocation
(int index) protected boolean
protected boolean
newInstance
(Shape shape) protected int
objectFieldIndex
(Location location) Methods inherited from class com.oracle.truffle.object.LayoutImpl
createShape, createShape, existingLocationForValue, getStrategy, getType, isAllowedIntToDouble, isAllowedIntToLong, isLocationAssignableFrom, isPropertyUpcastOf
Methods inherited from class com.oracle.truffle.api.object.Layout
createLayout, createLayout, createLayout, getFactory
-
Method Details
-
newInstance
- Specified by:
newInstance
in classLayoutImpl
-
createShape
- Specified by:
createShape
in classLayout
-
hasObjectExtensionArray
protected boolean hasObjectExtensionArray()- Specified by:
hasObjectExtensionArray
in classLayoutImpl
-
hasPrimitiveExtensionArray
protected boolean hasPrimitiveExtensionArray()- Specified by:
hasPrimitiveExtensionArray
in classLayoutImpl
-
getObjectFieldCount
protected int getObjectFieldCount()- Specified by:
getObjectFieldCount
in classLayoutImpl
-
getPrimitiveFieldCount
protected int getPrimitiveFieldCount()- Specified by:
getPrimitiveFieldCount
in classLayoutImpl
-
getObjectArrayLocation
- Specified by:
getObjectArrayLocation
in classLayoutImpl
-
getPrimitiveArrayLocation
- Specified by:
getPrimitiveArrayLocation
in classLayoutImpl
-
getObjectFieldLocation
-
getPrimitiveFieldLocation
-
createAllocator
Description copied from class:Layout
Create an allocator for static property creation. Reserves all array extension slots.- Specified by:
createAllocator
in classLayoutImpl
-
objectFieldIndex
- Specified by:
objectFieldIndex
in classLayoutImpl
-