Package com.oracle.truffle.object.basic
Class BasicLocations.PrimitiveLocationDecorator
java.lang.Object
com.oracle.truffle.api.object.Location
com.oracle.truffle.object.LocationImpl
com.oracle.truffle.object.basic.BasicLocations.PrimitiveLocationDecorator
- All Implemented Interfaces:
BaseLocation
- Direct Known Subclasses:
BasicLocations.BooleanLocationDecorator
,BasicLocations.DoubleLocationDecorator
,BasicLocations.IntLocationDecorator
,BasicLocations.LongLocationDecorator
- Enclosing class:
- BasicLocations
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.object.LocationImpl
LocationImpl.EffectivelyFinalLocation<T extends Location>, LocationImpl.InternalLongLocation, LocationImpl.TypedObjectLocation<T extends Location & ObjectLocation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal long
getLong
(DynamicObject store, boolean condition) final long
getLong
(DynamicObject store, Shape shape) final int
Get the number of primitive array elements this location requires.final int
Get the number of in-object primitive fields this location requires.final void
setLong
(DynamicObject store, long value) final void
setLong
(DynamicObject store, long value, Shape shape) final void
setLongInternal
(DynamicObject store, long value) Methods inherited from class com.oracle.truffle.object.LocationImpl
canSet, canStore, canStoreFinal, equals, getInternal, getWhereString, hashCode, isConstant, isFinal, objectArrayCount, objectFieldCount, set, setInternal, toString, valueEquals
Methods inherited from class com.oracle.truffle.api.object.Location
checkShape, finalLocation, get, get, incompatibleLocation, set, set
-
Constructor Details
-
PrimitiveLocationDecorator
-
-
Method Details
-
getLong
-
getLong
-
setLong
public final void setLong(DynamicObject store, long value, Shape shape) throws FinalLocationException - Throws:
FinalLocationException
-
setLong
- Throws:
FinalLocationException
-
setLongInternal
-
primitiveFieldCount
public final int primitiveFieldCount()Description copied from class:LocationImpl
Get the number of in-object primitive fields this location requires.- Overrides:
primitiveFieldCount
in classLocationImpl
-
primitiveArrayCount
public final int primitiveArrayCount()Description copied from class:LocationImpl
Get the number of primitive array elements this location requires.- Overrides:
primitiveArrayCount
in classLocationImpl
-