@Override public final void accept(LocationVisitor locationVisitor) { ((LocationImpl) longLocation).accept(locationVisitor); } }
/** @since 0.17 or earlier */ @Override public boolean canSet(DynamicObject store, Object value) { return canStore(value) && canStoreFinal(store, value); }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } ArrayLocation other = (ArrayLocation) obj; if (index != other.index) { return false; } return true; }
private static boolean assertLocationInRange(ShapeImpl shape, Location location) { BasicLayout layout = (BasicLayout) shape.getLayout(); assert (shape.getPrimitiveFieldSize() + ((LocationImpl) location).primitiveFieldCount() <= layout.getPrimitiveFieldCount()); assert (shape.getObjectFieldSize() + ((LocationImpl) location).objectFieldCount() <= layout.getObjectFieldCount()); return true; }
/** @since 0.17 or earlier */ @Override public String toString() { String finalString = isFinal() ? "f" : ""; String typeString = (this instanceof com.oracle.truffle.api.object.TypedLocation ? ((com.oracle.truffle.api.object.TypedLocation) this).getType().getSimpleName() : "Object"); return finalString + typeString + getWhereString(); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + index; return result; }
@Override public final int primitiveArrayCount() { return ((LocationImpl) longLocation).primitiveArrayCount(); }
/** @since 0.17 or earlier */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (isFinal() ? 1231 : 1237); return result; }
@Override public final int primitiveFieldCount() { return ((LocationImpl) longLocation).primitiveFieldCount(); }
@Override public int objectFieldCount() { return ((LocationImpl) objectLocation).objectFieldCount(); }
private static boolean assertLocationInRange(Shape shape, Location location) { BasicLayout layout = (BasicLayout) shape.getLayout(); assert (shape.getPrimitiveFieldSize() + ((LocationImpl) location).primitiveFieldCount() <= layout.getPrimitiveFieldCount()); assert (shape.getObjectFieldSize() + ((LocationImpl) location).objectFieldCount() <= layout.getObjectFieldCount()); return true; }
/** @since 0.17 or earlier */ @Override public String toString() { String finalString = isFinal() ? "f" : ""; String typeString = (this instanceof com.oracle.truffle.api.object.TypedLocation ? ((com.oracle.truffle.api.object.TypedLocation) this).getType().getSimpleName() : "Object"); return finalString + typeString + getWhereString(); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((value == null) ? 0 : 0 /* value.hashCode() */); return result; }
@Override public int primitiveArrayCount() { return ((LocationImpl) primitiveLocation).primitiveArrayCount(); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (isFinal() ? 1231 : 1237); return result; }
@Override public final int primitiveFieldCount() { return ((LocationImpl) longLocation).primitiveFieldCount(); }
private static boolean assertLocationInRange(ShapeImpl shape, Location location) { BasicLayout layout = (BasicLayout) shape.getLayout(); assert (shape.getPrimitiveFieldSize() + ((LocationImpl) location).primitiveFieldCount() <= layout.getPrimitiveFieldCount()); assert (shape.getObjectFieldSize() + ((LocationImpl) location).objectFieldCount() <= layout.getObjectFieldCount()); return true; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } FieldLocation other = (FieldLocation) obj; if (index != other.index) { return false; } return true; }
/** @since 0.17 or earlier */ @Override public boolean canSet(DynamicObject store, Object value) { return canStore(value) && canStoreFinal(store, value); }
@Override public String toString() { String finalString = isFinal() ? "f" : ""; String typeString = this instanceof IntLocation ? "i" : (this instanceof DoubleLocation ? "d" : (this instanceof BooleanLocation ? "b" : (this instanceof TypedLocation ? ((TypedLocation) this).getType().getSimpleName() : "o"))); return finalString + typeString + getWhereString(); }