src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/extended/RawLoadNode.java
changeset 48861 47f19ff9903c
parent 48190 25cfedf27edc
child 49873 26ebfe8ce852
equal deleted inserted replaced
48860:5bce1b7e7800 48861:47f19ff9903c
    95         if (alias instanceof VirtualObjectNode) {
    95         if (alias instanceof VirtualObjectNode) {
    96             VirtualObjectNode virtual = (VirtualObjectNode) alias;
    96             VirtualObjectNode virtual = (VirtualObjectNode) alias;
    97             ValueNode offsetValue = tool.getAlias(offset());
    97             ValueNode offsetValue = tool.getAlias(offset());
    98             if (offsetValue.isConstant()) {
    98             if (offsetValue.isConstant()) {
    99                 long off = offsetValue.asJavaConstant().asLong();
    99                 long off = offsetValue.asJavaConstant().asLong();
   100                 int entryIndex = virtual.entryIndexForOffset(off, accessKind());
   100                 int entryIndex = virtual.entryIndexForOffset(tool.getArrayOffsetProvider(), off, accessKind());
   101 
   101 
   102                 if (entryIndex != -1) {
   102                 if (entryIndex != -1) {
   103                     ValueNode entry = tool.getEntry(virtual, entryIndex);
   103                     ValueNode entry = tool.getEntry(virtual, entryIndex);
   104                     JavaKind entryKind = virtual.entryKind(entryIndex);
   104                     JavaKind entryKind = virtual.entryKind(entryIndex);
   105                     if (entry.getStackKind() == getStackKind() || entryKind == accessKind()) {
   105                     if (entry.getStackKind() == getStackKind() || entryKind == accessKind()) {