< prev index next >

test/compiler/jvmci/errors/CodeInstallerTest.java

Print this page
rev 9327 : 8142387: Various JVMCI tests fail on unexpected exception
rev 9280 : 8139589: [JVMCI] throw exceptions in faulty code installation operations
Reviewed-by: twisti
Contributed-by: Roland Schatz <roland.schatz@oracle.com>

@@ -69,10 +69,16 @@
 
     protected void installCode(CompilationResult result) {
         codeCache.addCode(dummyMethod, result, null, null);
     }
 
+    protected CompilationResult createEmptyCompilationResult() {
+        CompilationResult ret = new CompilationResult();
+        ret.setTotalFrameSize(0);
+        return ret;
+    }
+
     protected Register getRegister(PlatformKind kind, int index) {
         Register[] allRegs = arch.getAvailableValueRegisters();
         for (int i = 0; i < allRegs.length; i++) {
             if (arch.canStoreValue(allRegs[i].getRegisterCategory(), kind)) {
                 if (index-- == 0) {
< prev index next >