Mercurial > hg > graal-compiler
changeset 10008:03b822ee729e
LoadJavaMirrorWithKlassPhase: replace constants with floating nodes (GRAAL-290)
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Wed, 12 Jun 2013 16:04:41 +0200 |
parents | 10b8973ac372 |
children | b5c87b5c6e9c |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/LoadJavaMirrorWithKlassPhase.java |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/LoadJavaMirrorWithKlassPhase.java Wed Jun 12 14:00:26 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/LoadJavaMirrorWithKlassPhase.java Wed Jun 12 16:04:41 2013 +0200 @@ -27,7 +27,6 @@ import com.oracle.graal.api.meta.*; import com.oracle.graal.hotspot.meta.*; import com.oracle.graal.nodes.*; -import com.oracle.graal.nodes.HeapAccess.WriteBarrierType; import com.oracle.graal.nodes.extended.*; import com.oracle.graal.nodes.type.*; import com.oracle.graal.phases.*; @@ -49,13 +48,9 @@ Stamp stamp = StampFactory.exactNonNull(runtime.lookupJavaType(Class.class)); LocationNode location = graph.unique(ConstantLocationNode.create(FINAL_LOCATION, stamp.kind(), runtime.config.classMirrorOffset, graph)); - ReadNode readNode = graph.add(new ReadNode(klassNode, location, stamp, WriteBarrierType.NONE, false)); + FloatingReadNode freadNode = graph.add(new FloatingReadNode(klassNode, location, null, stamp)); - FixedNode afterStart = graph.start().next(); - graph.start().setNext(readNode); - readNode.setNext(afterStart); - - graph.replaceFloating(node, readNode); + graph.replaceFloating(node, freadNode); } } }