comparison src/share/vm/opto/bytecodeInfo.cpp @ 1507:cd5dbf694d45

6939134: JSR 292 adjustments to method handle invocation Summary: split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces Reviewed-by: twisti
author jrose
date Sat, 01 May 2010 02:42:18 -0700
parents c3b315a0d58a
children c18cbe5936b8 61b2245abf36
comparison
equal deleted inserted replaced
1506:2338d41fbd81 1507:cd5dbf694d45
475 if (old_ilt != NULL) { 475 if (old_ilt != NULL) {
476 return old_ilt; 476 return old_ilt;
477 } 477 }
478 int new_depth_adjust = 0; 478 int new_depth_adjust = 0;
479 if (caller_jvms->method() != NULL) { 479 if (caller_jvms->method() != NULL) {
480 if ((caller_jvms->method()->name() == ciSymbol::invoke_name() &&
481 caller_jvms->method()->holder()->name() == ciSymbol::java_dyn_MethodHandle())
482 || caller_jvms->method()->holder()->name() == ciSymbol::java_dyn_InvokeDynamic())
483 /* @@@ FIXME:
484 if (caller_jvms->method()->is_method_handle_adapter()) 480 if (caller_jvms->method()->is_method_handle_adapter())
485 */
486 new_depth_adjust -= 1; // don't count actions in MH or indy adapter frames 481 new_depth_adjust -= 1; // don't count actions in MH or indy adapter frames
487 else if (callee_method->is_method_handle_invoke()) { 482 else if (callee_method->is_method_handle_invoke()) {
488 new_depth_adjust -= 1; // don't count method handle calls from java.dyn implem 483 new_depth_adjust -= 1; // don't count method handle calls from java.dyn implem
489 } 484 }
490 if (new_depth_adjust != 0 && PrintInlining) { 485 if (new_depth_adjust != 0 && PrintInlining) {