Mercurial > hg > truffle
comparison graal/com.oracle.graal.loop/src/com/oracle/graal/loop/LoopFragmentInside.java @ 21543:93c50cefb9e8
moved GraalInternalError to com.oracle.jvmci.common and renamed it to JVMCIError (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 25 May 2015 23:30:34 +0200 |
parents | cba35d171cd1 |
children |
comparison
equal
deleted
inserted
replaced
21542:543957c1c6a6 | 21543:93c50cefb9e8 |
---|---|
23 package com.oracle.graal.loop; | 23 package com.oracle.graal.loop; |
24 | 24 |
25 import java.util.*; | 25 import java.util.*; |
26 | 26 |
27 import com.oracle.graal.compiler.common.*; | 27 import com.oracle.graal.compiler.common.*; |
28 import com.oracle.graal.graph.Graph.DuplicationReplacement; | |
28 import com.oracle.graal.graph.*; | 29 import com.oracle.graal.graph.*; |
29 import com.oracle.graal.graph.Graph.*; | |
30 import com.oracle.graal.graph.iterators.*; | 30 import com.oracle.graal.graph.iterators.*; |
31 import com.oracle.graal.nodes.*; | 31 import com.oracle.graal.nodes.*; |
32 import com.oracle.graal.nodes.VirtualState.*; | 32 import com.oracle.graal.nodes.VirtualState.NodeClosure; |
33 import com.oracle.graal.nodes.memory.*; | 33 import com.oracle.graal.nodes.memory.*; |
34 import com.oracle.graal.nodes.util.*; | 34 import com.oracle.graal.nodes.util.*; |
35 import com.oracle.jvmci.common.*; | |
35 | 36 |
36 public class LoopFragmentInside extends LoopFragment { | 37 public class LoopFragmentInside extends LoopFragment { |
37 | 38 |
38 /** | 39 /** |
39 * mergedInitializers. When an inside fragment's (loop)ends are merged to create a unique exit | 40 * mergedInitializers. When an inside fragment's (loop)ends are merged to create a unique exit |
192 } else if (phi instanceof GuardPhiNode) { | 193 } else if (phi instanceof GuardPhiNode) { |
193 ret = new GuardPhiNode(merge); | 194 ret = new GuardPhiNode(merge); |
194 } else if (phi instanceof MemoryPhiNode) { | 195 } else if (phi instanceof MemoryPhiNode) { |
195 ret = new MemoryPhiNode(merge, ((MemoryPhiNode) phi).getLocationIdentity()); | 196 ret = new MemoryPhiNode(merge, ((MemoryPhiNode) phi).getLocationIdentity()); |
196 } else { | 197 } else { |
197 throw GraalInternalError.shouldNotReachHere(); | 198 throw JVMCIError.shouldNotReachHere(); |
198 } | 199 } |
199 return graph.addWithoutUnique(ret); | 200 return graph.addWithoutUnique(ret); |
200 } | 201 } |
201 | 202 |
202 private void patchPeeling(LoopFragmentInside peel) { | 203 private void patchPeeling(LoopFragmentInside peel) { |