src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/extended/RawLoadNode.java
equal
deleted
inserted
replaced
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()) { |