8142387: Various JVMCI tests fail on unexpected exception

Reviewed-by: iignatyev, twisti
This commit is contained in:
Roland Schatz 2015-11-12 13:30:35 +01:00 committed by Christian Thalinger
parent 6896030b96
commit eee22b283d
4 changed files with 30 additions and 24 deletions

View file

@ -71,6 +71,12 @@ public class CodeInstallerTest {
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++) {