X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fmips%2FClassFileCompiler.java;h=fe212c3453c85e6cf2a7856e73817bd4bc76b4d6;hp=6619777cee47f00dbc961e2eb8d49aafc1fed4b2;hb=e66ecb6291d5d0f99bf48c9d56ceabb92c958bc2;hpb=e1c93788e00ec4b8232044893d6c9cd0a1173cfe diff --git a/src/org/xwt/mips/ClassFileCompiler.java b/src/org/xwt/mips/ClassFileCompiler.java index 6619777..fe212c3 100644 --- a/src/org/xwt/mips/ClassFileCompiler.java +++ b/src/org/xwt/mips/ClassFileCompiler.java @@ -148,7 +148,7 @@ public class ClassFileCompiler extends Compiler implements org.apache.bcel.Const a(InstructionConstants.IUSHR); int beg = text.addr >>> methodShift; - int end = ((text.addr + text.size) >>> methodShift) + 1; + int end = ((text.addr + text.size) >>> methodShift); // This data is redundant but BCEL wants it int[] matches = new int[end-beg]; @@ -1822,7 +1822,10 @@ public class ClassFileCompiler extends Compiler implements org.apache.bcel.Const return field; } - private boolean doLocal(int reg) { return reg == R+2 || reg == R+3 || reg == R+4 || reg == R+29; } + private boolean doLocal(int reg) { + //return false; + return reg == R+2 || reg == R+3 || reg == R+4 || reg == R+29; + } private InstructionHandle pushRegWZ(int reg) { if(reg == R+0) {