1.1 --- a/src/cpu/x86/vm/templateInterpreter_x86_32.cpp Wed Jun 15 10:20:03 2011 -0700 1.2 +++ b/src/cpu/x86/vm/templateInterpreter_x86_32.cpp Thu Jun 16 13:46:55 2011 -0700 1.3 @@ -112,32 +112,6 @@ 1.4 return entry; 1.5 } 1.6 1.7 -// Arguments are: required type at TOS+4, failing object (or NULL) at TOS. 1.8 -address TemplateInterpreterGenerator::generate_WrongMethodType_handler() { 1.9 - address entry = __ pc(); 1.10 - 1.11 - __ pop(rbx); // actual failing object is at TOS 1.12 - __ pop(rax); // required type is at TOS+4 1.13 - 1.14 - __ verify_oop(rbx); 1.15 - __ verify_oop(rax); 1.16 - 1.17 - // Various method handle types use interpreter registers as temps. 1.18 - __ restore_bcp(); 1.19 - __ restore_locals(); 1.20 - 1.21 - // Expression stack must be empty before entering the VM for an exception. 1.22 - __ empty_expression_stack(); 1.23 - __ empty_FPU_stack(); 1.24 - __ call_VM(noreg, 1.25 - CAST_FROM_FN_PTR(address, 1.26 - InterpreterRuntime::throw_WrongMethodTypeException), 1.27 - // pass required type, failing object (or NULL) 1.28 - rax, rbx); 1.29 - return entry; 1.30 -} 1.31 - 1.32 - 1.33 address TemplateInterpreterGenerator::generate_exception_handler_common(const char* name, const char* message, bool pass_oop) { 1.34 assert(!pass_oop || message == NULL, "either oop or message but not both"); 1.35 address entry = __ pc();