< prev index next >

src/hotspot/cpu/ppc/templateInterpreterGenerator_ppc.cpp

Print this page
rev 49948 : 8201593: Print array length in ArrayIndexOutOfBoundsException.
Reviewed-by: dholmes, mdoerr, smonteith

*** 562,578 **** CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_StackOverflowError)); return entry; } ! address TemplateInterpreterGenerator::generate_ArrayIndexOutOfBounds_handler(const char* name) { address entry = __ pc(); __ empty_expression_stack(); ! __ load_const_optimized(R4_ARG2, (address) name); // Index is in R17_tos. __ mr(R5_ARG3, R17_tos); ! __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_ArrayIndexOutOfBoundsException)); return entry; } address TemplateInterpreterGenerator::generate_ClassCastException_handler() { address entry = __ pc(); --- 562,578 ---- CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_StackOverflowError)); return entry; } ! address TemplateInterpreterGenerator::generate_ArrayIndexOutOfBounds_handler() { address entry = __ pc(); __ empty_expression_stack(); ! // R4_ARG2 already contains the array. // Index is in R17_tos. __ mr(R5_ARG3, R17_tos); ! __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_ArrayIndexOutOfBoundsException), R4_ARG2, R5_ARG3); return entry; } address TemplateInterpreterGenerator::generate_ClassCastException_handler() { address entry = __ pc();
< prev index next >