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 Locationprotected intprotected ObjectLocationgetObjectFieldLocation(int index) protected Locationprotected intprotected LocationImpl.InternalLongLocationgetPrimitiveFieldLocation(int index) protected booleanprotected booleannewInstance(Shape shape) protected intobjectFieldIndex(Location location) Methods inherited from class com.oracle.truffle.object.LayoutImpl
createShape, createShape, existingLocationForValue, getStrategy, getType, isAllowedIntToDouble, isAllowedIntToLong, isLocationAssignableFrom, isPropertyUpcastOfMethods inherited from class com.oracle.truffle.api.object.Layout
createLayout, createLayout, createLayout, getFactory
-
Method Details
-
newInstance
- Specified by:
newInstancein classLayoutImpl
-
createShape
- Specified by:
createShapein classLayout
-
hasObjectExtensionArray
protected boolean hasObjectExtensionArray()- Specified by:
hasObjectExtensionArrayin classLayoutImpl
-
hasPrimitiveExtensionArray
protected boolean hasPrimitiveExtensionArray()- Specified by:
hasPrimitiveExtensionArrayin classLayoutImpl
-
getObjectFieldCount
protected int getObjectFieldCount()- Specified by:
getObjectFieldCountin classLayoutImpl
-
getPrimitiveFieldCount
protected int getPrimitiveFieldCount()- Specified by:
getPrimitiveFieldCountin classLayoutImpl
-
getObjectArrayLocation
- Specified by:
getObjectArrayLocationin classLayoutImpl
-
getPrimitiveArrayLocation
- Specified by:
getPrimitiveArrayLocationin classLayoutImpl
-
getObjectFieldLocation
-
getPrimitiveFieldLocation
-
createAllocator
Description copied from class:LayoutCreate an allocator for static property creation. Reserves all array extension slots.- Specified by:
createAllocatorin classLayoutImpl
-
objectFieldIndex
- Specified by:
objectFieldIndexin classLayoutImpl
-