6161import com .oracle .truffle .api .nodes .NodeCost ;
6262import com .oracle .truffle .api .nodes .NodeInfo ;
6363import com .oracle .truffle .api .nodes .UnexpectedResultException ;
64- import com .oracle .truffle .api .object .BooleanLocation ;
65- import com .oracle .truffle .api .object .DoubleLocation ;
6664import com .oracle .truffle .api .object .DynamicObjectLibrary ;
6765import com .oracle .truffle .api .object .HiddenKey ;
68- import com .oracle .truffle .api .object .IntLocation ;
6966import com .oracle .truffle .api .object .Location ;
70- import com .oracle .truffle .api .object .LongLocation ;
7167import com .oracle .truffle .api .object .Property ;
7268import com .oracle .truffle .api .object .Shape ;
7369import com .oracle .truffle .api .profiles .BranchProfile ;
131127 * @see PropertyNode
132128 * @see GlobalPropertyNode
133129 */
130+ @ SuppressWarnings ("deprecation" )
134131public class PropertyGetNode extends PropertyCacheNode <PropertyGetNode .GetCacheNode > {
135132 protected final boolean isGlobal ;
136133 protected final boolean getOwnProperty ;
@@ -676,12 +673,12 @@ protected Object getValue(Object thisObj, Object receiver, Object defaultValue,
676673
677674 public static final class IntPropertyGetNode extends LinkedPropertyGetNode {
678675
679- private final IntLocation location ;
676+ private final com . oracle . truffle . api . object . IntLocation location ;
680677
681678 public IntPropertyGetNode (Property property , ReceiverCheckNode receiverCheck ) {
682679 super (receiverCheck );
683680 assert JSProperty .isData (property );
684- this .location = (IntLocation ) property .getLocation ();
681+ this .location = (com . oracle . truffle . api . object . IntLocation ) property .getLocation ();
685682 }
686683
687684 @ Override
@@ -702,14 +699,14 @@ protected double getValueDouble(Object thisObj, Object receiver, PropertyGetNode
702699
703700 public static final class FinalIntPropertyGetNode extends AbstractFinalPropertyGetNode {
704701
705- private final IntLocation location ;
702+ private final com . oracle . truffle . api . object . IntLocation location ;
706703 private final int finalValue ;
707704
708705 public FinalIntPropertyGetNode (Property property , AbstractShapeCheckNode shapeCheck , int value , JSDynamicObject expectedObj ) {
709706 super (property , shapeCheck , expectedObj );
710707 assert JSProperty .isData (property );
711708 this .finalValue = value ;
712- this .location = (IntLocation ) property .getLocation ();
709+ this .location = (com . oracle . truffle . api . object . IntLocation ) property .getLocation ();
713710 }
714711
715712 @ Override
@@ -735,12 +732,12 @@ protected double getValueDouble(Object thisObj, Object receiver, PropertyGetNode
735732
736733 public static final class DoublePropertyGetNode extends LinkedPropertyGetNode {
737734
738- private final DoubleLocation location ;
735+ private final com . oracle . truffle . api . object . DoubleLocation location ;
739736
740737 public DoublePropertyGetNode (Property property , ReceiverCheckNode receiverCheck ) {
741738 super (receiverCheck );
742739 assert JSProperty .isData (property );
743- this .location = (DoubleLocation ) property .getLocation ();
740+ this .location = (com . oracle . truffle . api . object . DoubleLocation ) property .getLocation ();
744741 }
745742
746743 @ Override
@@ -757,13 +754,13 @@ protected double getValueDouble(Object thisObj, Object receiver, PropertyGetNode
757754 public static final class FinalDoublePropertyGetNode extends AbstractFinalPropertyGetNode {
758755
759756 private final double finalValue ;
760- private final DoubleLocation location ;
757+ private final com . oracle . truffle . api . object . DoubleLocation location ;
761758
762759 public FinalDoublePropertyGetNode (Property property , AbstractShapeCheckNode shapeCheck , double value , JSDynamicObject expectedObj ) {
763760 super (property , shapeCheck , expectedObj );
764761 assert JSProperty .isData (property );
765762 this .finalValue = value ;
766- this .location = (DoubleLocation ) property .getLocation ();
763+ this .location = (com . oracle . truffle . api . object . DoubleLocation ) property .getLocation ();
767764 }
768765
769766 @ Override
@@ -784,12 +781,12 @@ protected double getValueDouble(Object thisObj, Object receiver, PropertyGetNode
784781
785782 public static final class BooleanPropertyGetNode extends LinkedPropertyGetNode {
786783
787- private final BooleanLocation location ;
784+ private final com . oracle . truffle . api . object . BooleanLocation location ;
788785
789786 public BooleanPropertyGetNode (Property property , ReceiverCheckNode receiverCheck ) {
790787 super (receiverCheck );
791788 assert JSProperty .isData (property );
792- this .location = (BooleanLocation ) property .getLocation ();
789+ this .location = (com . oracle . truffle . api . object . BooleanLocation ) property .getLocation ();
793790 }
794791
795792 @ Override
@@ -806,13 +803,13 @@ protected boolean getValueBoolean(Object thisObj, Object receiver, PropertyGetNo
806803 public static final class FinalBooleanPropertyGetNode extends AbstractFinalPropertyGetNode {
807804
808805 private final boolean finalValue ;
809- private final BooleanLocation location ;
806+ private final com . oracle . truffle . api . object . BooleanLocation location ;
810807
811808 public FinalBooleanPropertyGetNode (Property property , AbstractShapeCheckNode shapeCheck , boolean value , JSDynamicObject expectedObj ) {
812809 super (property , shapeCheck , expectedObj );
813810 assert JSProperty .isData (property );
814811 this .finalValue = value ;
815- this .location = (BooleanLocation ) property .getLocation ();
812+ this .location = (com . oracle . truffle . api . object . BooleanLocation ) property .getLocation ();
816813 }
817814
818815 @ Override
@@ -833,12 +830,12 @@ protected boolean getValueBoolean(Object thisObj, Object receiver, PropertyGetNo
833830
834831 public static final class LongPropertyGetNode extends LinkedPropertyGetNode {
835832
836- private final LongLocation location ;
833+ private final com . oracle . truffle . api . object . LongLocation location ;
837834
838835 public LongPropertyGetNode (Property property , ReceiverCheckNode receiverCheck ) {
839836 super (receiverCheck );
840837 assert JSProperty .isData (property );
841- this .location = (LongLocation ) property .getLocation ();
838+ this .location = (com . oracle . truffle . api . object . LongLocation ) property .getLocation ();
842839 }
843840
844841 @ Override
@@ -855,13 +852,13 @@ protected long getValueLong(Object thisObj, Object receiver, PropertyGetNode roo
855852 public static final class FinalLongPropertyGetNode extends AbstractFinalPropertyGetNode {
856853
857854 private final long finalValue ;
858- private final LongLocation location ;
855+ private final com . oracle . truffle . api . object . LongLocation location ;
859856
860857 public FinalLongPropertyGetNode (Property property , AbstractShapeCheckNode shapeCheck , long value , JSDynamicObject expectedObj ) {
861858 super (property , shapeCheck , expectedObj );
862859 assert JSProperty .isData (property );
863860 this .finalValue = value ;
864- this .location = (LongLocation ) property .getLocation ();
861+ this .location = (com . oracle . truffle . api . object . LongLocation ) property .getLocation ();
865862 }
866863
867864 @ Override
@@ -1921,13 +1918,13 @@ private GetCacheNode createCachedPropertyNodeNotJSObject(Property property, Obje
19211918 private static GetCacheNode createSpecializationFromDataProperty (Property property , ReceiverCheckNode receiverCheck , JSContext context ) {
19221919 Property dataProperty = property ;
19231920
1924- if (property .getLocation () instanceof IntLocation ) {
1921+ if (property .getLocation () instanceof com . oracle . truffle . api . object . IntLocation ) {
19251922 return new IntPropertyGetNode (dataProperty , receiverCheck );
1926- } else if (property .getLocation () instanceof DoubleLocation ) {
1923+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . DoubleLocation ) {
19271924 return new DoublePropertyGetNode (dataProperty , receiverCheck );
1928- } else if (property .getLocation () instanceof BooleanLocation ) {
1925+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . BooleanLocation ) {
19291926 return new BooleanPropertyGetNode (dataProperty , receiverCheck );
1930- } else if (property .getLocation () instanceof LongLocation ) {
1927+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . LongLocation ) {
19311928 return new LongPropertyGetNode (dataProperty , receiverCheck );
19321929 } else if (JSProperty .isProxy (property )) {
19331930 if (isArrayLengthProperty (property )) {
@@ -1960,16 +1957,16 @@ private GetCacheNode createFinalDataPropertySpecialization(Property property, Sh
19601957
19611958 JSDynamicObject constObjOrNull = isConstantObjectFinal ? thisObj : null ;
19621959 try {
1963- if (property .getLocation () instanceof IntLocation ) {
1960+ if (property .getLocation () instanceof com . oracle . truffle . api . object . IntLocation ) {
19641961 int intValue = DynamicObjectLibrary .getUncached ().getIntOrDefault (store , key , null );
19651962 return new FinalIntPropertyGetNode (property , finalShapeCheckNode , intValue , constObjOrNull );
1966- } else if (property .getLocation () instanceof DoubleLocation ) {
1963+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . DoubleLocation ) {
19671964 double doubleValue = DynamicObjectLibrary .getUncached ().getDoubleOrDefault (store , key , null );
19681965 return new FinalDoublePropertyGetNode (property , finalShapeCheckNode , doubleValue , constObjOrNull );
1969- } else if (property .getLocation () instanceof BooleanLocation ) {
1966+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . BooleanLocation ) {
19701967 boolean boolValue = (boolean ) DynamicObjectLibrary .getUncached ().getOrDefault (store , key , null );
19711968 return new FinalBooleanPropertyGetNode (property , finalShapeCheckNode , boolValue , constObjOrNull );
1972- } else if (property .getLocation () instanceof LongLocation ) {
1969+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . LongLocation ) {
19731970 long longValue = DynamicObjectLibrary .getUncached ().getLongOrDefault (store , key , null );
19741971 return new FinalLongPropertyGetNode (property , finalShapeCheckNode , longValue , constObjOrNull );
19751972 } else {
@@ -2145,13 +2142,13 @@ protected boolean canCombineShapeCheck(Shape parentShape, Shape cacheShape, Obje
21452142 protected GetCacheNode createCombinedIcPropertyNode (Shape parentShape , Shape cacheShape , Object thisObj , int depth , Object value , Property property ) {
21462143 CombinedShapeCheckNode receiverCheck = new CombinedShapeCheckNode (parentShape , cacheShape );
21472144
2148- if (property .getLocation () instanceof IntLocation ) {
2145+ if (property .getLocation () instanceof com . oracle . truffle . api . object . IntLocation ) {
21492146 return new IntPropertyGetNode (property , receiverCheck );
2150- } else if (property .getLocation () instanceof DoubleLocation ) {
2147+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . DoubleLocation ) {
21512148 return new DoublePropertyGetNode (property , receiverCheck );
2152- } else if (property .getLocation () instanceof BooleanLocation ) {
2149+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . BooleanLocation ) {
21532150 return new BooleanPropertyGetNode (property , receiverCheck );
2154- } else if (property .getLocation () instanceof LongLocation ) {
2151+ } else if (property .getLocation () instanceof com . oracle . truffle . api . object . LongLocation ) {
21552152 return new LongPropertyGetNode (property , receiverCheck );
21562153 } else {
21572154 assert !JSProperty .isProxy (property );
0 commit comments