Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/OnStackReplacementPhase.java @ 21780:3d15183f3c93
Introduce Compiler interface in jvmci. Use it from jvmci.hotspot.CompilationTask
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 15:47:54 +0200 |
parents | 48c1ebd24120 |
children | 0e095e2c24e2 |
comparison
equal
deleted
inserted
replaced
21779:20ace3139510 | 21780:3d15183f3c93 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.hotspot.phases; | 23 package com.oracle.graal.hotspot.phases; |
24 | 24 |
25 import com.oracle.jvmci.code.BailoutException; | |
26 import static com.oracle.graal.phases.common.DeadCodeEliminationPhase.Optionality.*; | 25 import static com.oracle.graal.phases.common.DeadCodeEliminationPhase.Optionality.*; |
27 | 26 |
28 import com.oracle.graal.graph.*; | 27 import com.oracle.graal.graph.*; |
29 import com.oracle.graal.graph.iterators.*; | 28 import com.oracle.graal.graph.iterators.*; |
30 import com.oracle.graal.loop.*; | 29 import com.oracle.graal.loop.*; |
32 import com.oracle.graal.nodes.*; | 31 import com.oracle.graal.nodes.*; |
33 import com.oracle.graal.nodes.extended.*; | 32 import com.oracle.graal.nodes.extended.*; |
34 import com.oracle.graal.nodes.util.*; | 33 import com.oracle.graal.nodes.util.*; |
35 import com.oracle.graal.phases.*; | 34 import com.oracle.graal.phases.*; |
36 import com.oracle.graal.phases.common.*; | 35 import com.oracle.graal.phases.common.*; |
36 import com.oracle.jvmci.code.*; | |
37 import com.oracle.jvmci.common.*; | 37 import com.oracle.jvmci.common.*; |
38 import com.oracle.jvmci.compiler.Compiler; | |
38 import com.oracle.jvmci.debug.*; | 39 import com.oracle.jvmci.debug.*; |
39 | 40 |
40 public class OnStackReplacementPhase extends Phase { | 41 public class OnStackReplacementPhase extends Phase { |
41 | 42 |
42 @Override | 43 @Override |
43 protected void run(StructuredGraph graph) { | 44 protected void run(StructuredGraph graph) { |
44 if (graph.getEntryBCI() == StructuredGraph.INVOCATION_ENTRY_BCI) { | 45 if (graph.getEntryBCI() == Compiler.INVOCATION_ENTRY_BCI) { |
45 // This happens during inlining in a OSR method, because the same phase plan will be | 46 // This happens during inlining in a OSR method, because the same phase plan will be |
46 // used. | 47 // used. |
47 return; | 48 return; |
48 } | 49 } |
49 Debug.dump(graph, "OnStackReplacement initial"); | 50 Debug.dump(graph, "OnStackReplacement initial"); |