--- old/test/compiler/jvmci/compilerToVM/CompileCodeTestCase.java 2015-11-02 17:07:04.000000000 -1000 +++ new/test/compiler/jvmci/compilerToVM/CompileCodeTestCase.java 2015-11-02 17:07:04.000000000 -1000 @@ -24,8 +24,10 @@ package compiler.jvmci.compilerToVM; +import compiler.jvmci.common.CTVMUtilities; import compiler.testlibrary.CompilerUtils; import jdk.test.lib.Utils; +import jdk.vm.ci.code.InstalledCode; import sun.hotspot.WhiteBox; import sun.hotspot.code.NMethod; @@ -102,6 +104,14 @@ return NMethod.get(executable, isOsr); } + public InstalledCode toInstalledCode() { + NMethod nmethod = toNMethod(); + long address = nmethod == null ? 0L : nmethod.address; + long entryPoint = nmethod == null ? 0L : nmethod.entry_point; + return CTVMUtilities.getInstalledCode( + executable.getName(), address, entryPoint); + } + @Override public String toString() { return "CompileCodeTestCase{" +