Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java @ 7318:323ece2b012b
Refactor debug environment creation.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 09 Jan 2013 23:18:18 +0100 |
parents | 1706be855f0e |
children | 5ce0743ba6d8 |
comparison
equal
deleted
inserted
replaced
7317:40be0ff5a3ce | 7318:323ece2b012b |
---|---|
42 import com.oracle.graal.hotspot.snippets.*; | 42 import com.oracle.graal.hotspot.snippets.*; |
43 import com.oracle.graal.java.*; | 43 import com.oracle.graal.java.*; |
44 import com.oracle.graal.nodes.*; | 44 import com.oracle.graal.nodes.*; |
45 import com.oracle.graal.phases.*; | 45 import com.oracle.graal.phases.*; |
46 import com.oracle.graal.phases.PhasePlan.PhasePosition; | 46 import com.oracle.graal.phases.PhasePlan.PhasePosition; |
47 import com.oracle.graal.printer.*; | |
47 import com.oracle.graal.snippets.*; | 48 import com.oracle.graal.snippets.*; |
48 | 49 |
49 /** | 50 /** |
50 * Exits from the HotSpot VM into Java code. | 51 * Exits from the HotSpot VM into Java code. |
51 */ | 52 */ |
121 if (GraalOptions.MethodFilter != null) { | 122 if (GraalOptions.MethodFilter != null) { |
122 TTY.println("WARNING: Ignoring MethodFilter option since Log, Meter, Time and Dump options are all null"); | 123 TTY.println("WARNING: Ignoring MethodFilter option since Log, Meter, Time and Dump options are all null"); |
123 } | 124 } |
124 } | 125 } |
125 | 126 |
126 if (GraalOptions.Debug) { | 127 if (GraalOptions.Debug && GraalOptions.DebugSnippets) { |
127 Debug.enable(); | 128 DebugEnvironment.initialize(log); |
128 HotSpotDebugConfig hotspotDebugConfig = new HotSpotDebugConfig(GraalOptions.Log, GraalOptions.Meter, GraalOptions.Time, GraalOptions.Dump, GraalOptions.MethodFilter, log); | |
129 Debug.setConfig(hotspotDebugConfig); | |
130 } | 129 } |
131 // Install intrinsics. | 130 // Install intrinsics. |
132 GraalCompiler compiler = graalRuntime.getCompiler(); | 131 GraalCompiler compiler = graalRuntime.getCompiler(); |
133 final HotSpotRuntime runtime = (HotSpotRuntime) compiler.runtime; | 132 final HotSpotRuntime runtime = (HotSpotRuntime) compiler.runtime; |
134 if (GraalOptions.Intrinsify) { | 133 if (GraalOptions.Intrinsify) { |