use of org.graalvm.compiler.hotspot.nodes.LoadIndexedPointerNode in project graal by oracle.
the class HotSpotWordOperationPlugin method createLoadIndexedNode.
@Override
protected LoadIndexedNode createLoadIndexedNode(ValueNode array, ValueNode index) {
ResolvedJavaType arrayType = StampTool.typeOrNull(array);
Stamp componentStamp = wordTypes.getWordStamp(arrayType.getComponentType());
if (componentStamp instanceof MetaspacePointerStamp) {
return new LoadIndexedPointerNode(componentStamp, array, index);
} else {
return super.createLoadIndexedNode(array, index);
}
}
Aggregations