1.1 --- a/src/cpu/x86/vm/methodHandles_x86.cpp Mon Oct 08 13:02:13 2012 -0700 1.2 +++ b/src/cpu/x86/vm/methodHandles_x86.cpp Mon Oct 08 17:04:00 2012 -0700 1.3 @@ -209,8 +209,6 @@ 1.4 Register rcx_mh = rcx; // MH receiver; dies quickly and is recycled 1.5 Register rbx_method = rbx; // eventual target of this invocation 1.6 1.7 - address code_start = __ pc(); 1.8 - 1.9 // here's where control starts out: 1.10 __ align(CodeEntryAlignment); 1.11 address entry_point = __ pc(); 1.12 @@ -251,23 +249,7 @@ 1.13 1.14 // rdx_first_arg_addr is live! 1.15 1.16 - if (TraceMethodHandles) { 1.17 - const char* name = vmIntrinsics::name_at(iid); 1.18 - if (*name == '_') name += 1; 1.19 - const size_t len = strlen(name) + 50; 1.20 - char* qname = NEW_C_HEAP_ARRAY(char, len, mtInternal); 1.21 - const char* suffix = ""; 1.22 - if (vmIntrinsics::method_for(iid) == NULL || 1.23 - !vmIntrinsics::method_for(iid)->access_flags().is_public()) { 1.24 - if (is_signature_polymorphic_static(iid)) 1.25 - suffix = "/static"; 1.26 - else 1.27 - suffix = "/private"; 1.28 - } 1.29 - jio_snprintf(qname, len, "MethodHandle::interpreter_entry::%s%s", name, suffix); 1.30 - // note: stub look for mh in rcx 1.31 - trace_method_handle(_masm, qname); 1.32 - } 1.33 + trace_method_handle_interpreter_entry(_masm, iid); 1.34 1.35 if (iid == vmIntrinsics::_invokeBasic) { 1.36 generate_method_handle_dispatch(_masm, iid, rcx_mh, noreg, not_for_compiler_entry); 1.37 @@ -287,14 +269,6 @@ 1.38 generate_method_handle_dispatch(_masm, iid, rcx_recv, rbx_member, not_for_compiler_entry); 1.39 } 1.40 1.41 - if (PrintMethodHandleStubs) { 1.42 - address code_end = __ pc(); 1.43 - tty->print_cr("--------"); 1.44 - tty->print_cr("method handle interpreter entry for %s", vmIntrinsics::name_at(iid)); 1.45 - Disassembler::decode(code_start, code_end); 1.46 - tty->cr(); 1.47 - } 1.48 - 1.49 return entry_point; 1.50 } 1.51