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
public abstract static class BasicLocations.PrimitiveLocationDecorator extends LocationImpl
-
-
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 Constructor Description PrimitiveLocationDecorator(LocationImpl.InternalLongLocation longLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLong(DynamicObject store, boolean condition)longgetLong(DynamicObject store, Shape shape)intprimitiveArrayCount()Get the number of primitive array elements this location requires.intprimitiveFieldCount()Get the number of in-object primitive fields this location requires.voidsetLong(DynamicObject store, long value)voidsetLong(DynamicObject store, long value, Shape shape)voidsetLongInternal(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 Detail
-
PrimitiveLocationDecorator
public PrimitiveLocationDecorator(LocationImpl.InternalLongLocation longLocation)
-
-
Method Detail
-
getLong
public final long getLong(DynamicObject store, Shape shape)
-
getLong
public final long getLong(DynamicObject store, boolean condition)
-
setLong
public final void setLong(DynamicObject store, long value, Shape shape) throws FinalLocationException
- Throws:
FinalLocationException
-
setLong
public final void setLong(DynamicObject store, long value) throws FinalLocationException
- Throws:
FinalLocationException
-
setLongInternal
public final void setLongInternal(DynamicObject store, long value)
-
primitiveFieldCount
public final int primitiveFieldCount()
Description copied from class:LocationImplGet the number of in-object primitive fields this location requires.- Overrides:
primitiveFieldCountin classLocationImpl
-
primitiveArrayCount
public final int primitiveArrayCount()
Description copied from class:LocationImplGet the number of primitive array elements this location requires.- Overrides:
primitiveArrayCountin classLocationImpl
-
-