* src/vm/jit/powerpc/emit.c (emit_arrayindexoutofbounds_check):
authortwisti <none@none>
Sat, 9 Dec 2006 00:25:34 +0000 (00:25 +0000)
committertwisti <none@none>
Sat, 9 Dec 2006 00:25:34 +0000 (00:25 +0000)
Removed hardware-exception code.

src/vm/jit/powerpc/emit.c

index b6e060a5ac5e341065a57d293dfebf233d6e753e..a1a0e41152e8ed757f6d7bce36a18da44c5f3208 100644 (file)
@@ -296,19 +296,12 @@ void emit_nullpointer_check(codegendata *cd, s4 reg)
 
 void emit_arrayindexoutofbounds_check(codegendata *cd, s4 s1, s4 s2)
 {
-#if 0
        if (checkbounds) {
                M_ILD(REG_ITMP3, s1, OFFSET(java_arrayheader, size));
                M_CMPU(s2, REG_ITMP3);
                M_BGE(0);
                codegen_add_arrayindexoutofboundsexception_ref(cd, s2);
        }
-#else
-       M_ILD(REG_ITMP3, s1, OFFSET(java_arrayheader, size));
-       M_CMPU(s2, REG_ITMP3);
-       M_BLT(1);
-       M_ALD_INTERN(s2, REG_ZERO, EXCEPTION_LOAD_DISP_ARRAYINDEXOUTOFBOUNDS);
-#endif
 }