comparison graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java @ 9864:063a712fe8d8

converted remaining options in GraalOptions to new system (GRAAL-27)
author Doug Simon <doug.simon@oracle.com>
date Tue, 04 Jun 2013 17:33:14 +0200
parents e415e58e0db2
children 3df534c97af1
comparison
equal deleted inserted replaced
9863:b2141bc6e98e 9864:063a712fe8d8
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.compiler.test; 23 package com.oracle.graal.compiler.test;
24 24
25 import static com.oracle.graal.api.code.CodeUtil.*; 25 import static com.oracle.graal.api.code.CodeUtil.*;
26 import static com.oracle.graal.phases.GraalOptions.*;
26 27
27 import java.lang.reflect.*; 28 import java.lang.reflect.*;
28 import java.util.*; 29 import java.util.*;
29 import java.util.concurrent.*; 30 import java.util.concurrent.*;
30 31
418 final int id = compilationId++; 419 final int id = compilationId++;
419 420
420 InstalledCode installedCode = Debug.scope("Compiling", new Object[]{runtime, new DebugDumpScope(String.valueOf(id), true)}, new Callable<InstalledCode>() { 421 InstalledCode installedCode = Debug.scope("Compiling", new Object[]{runtime, new DebugDumpScope(String.valueOf(id), true)}, new Callable<InstalledCode>() {
421 422
422 public InstalledCode call() throws Exception { 423 public InstalledCode call() throws Exception {
423 final boolean printCompilation = GraalOptions.PrintCompilation && !TTY.isSuppressed(); 424 final boolean printCompilation = PrintCompilation.getValue() && !TTY.isSuppressed();
424 if (printCompilation) { 425 if (printCompilation) {
425 TTY.println(String.format("@%-6d Graal %-70s %-45s %-50s ...", id, method.getDeclaringClass().getName(), method.getName(), method.getSignature())); 426 TTY.println(String.format("@%-6d Graal %-70s %-45s %-50s ...", id, method.getDeclaringClass().getName(), method.getName(), method.getSignature()));
426 } 427 }
427 long start = System.currentTimeMillis(); 428 long start = System.currentTimeMillis();
428 PhasePlan phasePlan = new PhasePlan(); 429 PhasePlan phasePlan = new PhasePlan();