< prev index next >

test/compiler/jvmci/common/JVMCIHelpers.java

Print this page

        

*** 22,35 **** */ package compiler.jvmci.common; import jdk.vm.ci.code.Architecture; import jdk.vm.ci.hotspot.HotSpotVMEventListener; - import jdk.vm.ci.compiler.Compiler; - import jdk.vm.ci.compiler.CompilerFactory; import jdk.vm.ci.meta.ResolvedJavaMethod; import jdk.vm.ci.runtime.JVMCIRuntime; /* * A stub classes to be able to use jvmci */ --- 22,36 ---- */ package compiler.jvmci.common; import jdk.vm.ci.code.Architecture; + import jdk.vm.ci.code.CompilationRequest; import jdk.vm.ci.hotspot.HotSpotVMEventListener; import jdk.vm.ci.meta.ResolvedJavaMethod; + import jdk.vm.ci.runtime.JVMCICompiler; + import jdk.vm.ci.runtime.JVMCICompilerFactory; import jdk.vm.ci.runtime.JVMCIRuntime; /* * A stub classes to be able to use jvmci */
*** 37,68 **** public static class EmptyVMEventListener implements HotSpotVMEventListener { // just empty, using default interface methods } ! public static class EmptyHotspotCompiler implements Compiler { @Override ! public void compileMethod(ResolvedJavaMethod method, int entryBCI, ! long jvmciEnv, int id) { // do nothing } } ! public static class EmptyCompilerFactory implements CompilerFactory { @Override public String getCompilerName() { return "EmptyCompiler"; } @Override ! public Architecture initializeArchitecture(Architecture arch) { ! return arch; ! } ! ! @Override ! public Compiler createCompiler(JVMCIRuntime runtime) { return new EmptyHotspotCompiler(); } } } --- 38,63 ---- public static class EmptyVMEventListener implements HotSpotVMEventListener { // just empty, using default interface methods } ! public static class EmptyHotspotCompiler implements JVMCICompiler { @Override ! public void compileMethod(CompilationRequest request) { // do nothing } } ! public static class EmptyCompilerFactory implements JVMCICompilerFactory { @Override public String getCompilerName() { return "EmptyCompiler"; } @Override ! public JVMCICompiler createCompiler(JVMCIRuntime runtime) { return new EmptyHotspotCompiler(); } } }
< prev index next >