Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/DefaultHotSpotLoweringProvider.java @ 19410:61d3cb8e1280
Add generic parameter to NodeClass. Change Graph#getNodes(Class) to Graph#getNodes(NodeClass).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 17:47:43 +0100 |
parents | 5eb28dbbeb37 |
children | 19d3db31bcea |
comparison
equal
deleted
inserted
replaced
19409:a16f1bbe2965 | 19410:61d3cb8e1280 |
---|---|
354 migrationEnd.setNext(next); | 354 migrationEnd.setNext(next); |
355 graph.setStart(newStart); | 355 graph.setStart(newStart); |
356 | 356 |
357 // mirroring the calculations in c1_GraphBuilder.cpp (setup_osr_entry_block) | 357 // mirroring the calculations in c1_GraphBuilder.cpp (setup_osr_entry_block) |
358 int localsOffset = (graph.method().getMaxLocals() - 1) * 8; | 358 int localsOffset = (graph.method().getMaxLocals() - 1) * 8; |
359 for (OSRLocalNode osrLocal : graph.getNodes(OSRLocalNode.class)) { | 359 for (OSRLocalNode osrLocal : graph.getNodes(OSRLocalNode.TYPE)) { |
360 int size = osrLocal.getKind().getSlotCount(); | 360 int size = osrLocal.getKind().getSlotCount(); |
361 int offset = localsOffset - (osrLocal.index() + size - 1) * 8; | 361 int offset = localsOffset - (osrLocal.index() + size - 1) * 8; |
362 IndexedLocationNode location = graph.unique(new IndexedLocationNode(ANY_LOCATION, offset, ConstantNode.forLong(0, graph), 1)); | 362 IndexedLocationNode location = graph.unique(new IndexedLocationNode(ANY_LOCATION, offset, ConstantNode.forLong(0, graph), 1)); |
363 ReadNode load = graph.add(new ReadNode(buffer, location, osrLocal.stamp(), BarrierType.NONE)); | 363 ReadNode load = graph.add(new ReadNode(buffer, location, osrLocal.stamp(), BarrierType.NONE)); |
364 osrLocal.replaceAndDelete(load); | 364 osrLocal.replaceAndDelete(load); |