Mercurial > hg > truffle
changeset 18659:81a26fb13a9e
removed pluggable compiler support in GraalCompilerTest
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 11 Dec 2014 10:19:04 +0100 |
parents | 304b65422434 |
children | 54712aa2d3ee |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java |
diffstat | 1 files changed, 1 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Thu Dec 11 10:18:38 2014 +0100 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Thu Dec 11 10:19:04 2014 +0100 @@ -686,28 +686,7 @@ CallingConvention cc = getCallingConvention(getCodeCache(), Type.JavaCallee, graphToCompile.method(), false); Request<CompilationResult> request = new Request<>(graphToCompile, null, cc, installedCodeOwner, getProviders(), getBackend(), getCodeCache().getTarget(), null, getDefaultGraphBuilderSuite(), OptimisticOptimizations.ALL, getProfilingInfo(graphToCompile), getSpeculationLog(), getSuites(), new CompilationResult(), CompilationResultBuilderFactory.Default); - return compiler.compile(request); - } - - public static final Compiler DEFAULT_COMPILER = new Compiler(); - - private static Compiler compiler = DEFAULT_COMPILER; - - public static Compiler getCompiler() { - return compiler; - } - - public static void setCompiler(Compiler comp) { - compiler = comp; - } - - /** - * Pluggable compiler for servicing a compilation {@link Request}. - */ - public static class Compiler { - public <T extends CompilationResult> T compile(Request<T> request) { - return GraalCompiler.compile(request); - } + return GraalCompiler.compile(request); } protected StructuredGraph lastCompiledGraph;