Mercurial > hg > truffle
comparison graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/BoxingEliminationPhase.java @ 7053:014727292ae0
removed more usages of ResolvedJavaType.toJava()
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 27 Nov 2012 18:03:49 +0100 |
parents | ee651c726397 |
children | 585fc9f79ebc |
comparison
equal
deleted
inserted
replaced
7052:47c120841ceb | 7053:014727292ae0 |
---|---|
69 if (!phiReplacements.containsKey(phiNode)) { | 69 if (!phiReplacements.containsKey(phiNode)) { |
70 PhiNode result = null; | 70 PhiNode result = null; |
71 ObjectStamp stamp = phiNode.objectStamp(); | 71 ObjectStamp stamp = phiNode.objectStamp(); |
72 if (stamp.nonNull() && stamp.isExactType()) { | 72 if (stamp.nonNull() && stamp.isExactType()) { |
73 ResolvedJavaType type = stamp.type(); | 73 ResolvedJavaType type = stamp.type(); |
74 if (type != null && type.toJava() == kind.toBoxedJavaClass()) { | 74 if (type != null && type.isClass(kind.toBoxedJavaClass())) { |
75 StructuredGraph graph = (StructuredGraph) phiNode.graph(); | 75 StructuredGraph graph = (StructuredGraph) phiNode.graph(); |
76 result = graph.add(new PhiNode(kind, phiNode.merge())); | 76 result = graph.add(new PhiNode(kind, phiNode.merge())); |
77 phiReplacements.put(phiNode, result); | 77 phiReplacements.put(phiNode, result); |
78 virtualizeUsages(phiNode, result, type); | 78 virtualizeUsages(phiNode, result, type); |
79 int i = 0; | 79 int i = 0; |