comparison src/share/vm/ci/ciMethodHandle.cpp @ 3366:e2a92dd0d3d2

7042122: JSR 292: adjust various inline thresholds for JSR 292 API methods and method handle adapters Reviewed-by: jrose, never, kvn
author twisti
date Tue, 10 May 2011 00:45:03 -0700
parents 4124a5a27707
children fabcf26ee72f
comparison
equal deleted inserted replaced
3365:3cfb240033d1 3366:e2a92dd0d3d2
40 VM_ENTRY_MARK; 40 VM_ENTRY_MARK;
41 Handle h(get_oop()); 41 Handle h(get_oop());
42 methodHandle callee(_callee->get_methodOop()); 42 methodHandle callee(_callee->get_methodOop());
43 // We catch all exceptions here that could happen in the method 43 // We catch all exceptions here that could happen in the method
44 // handle compiler and stop the VM. 44 // handle compiler and stop the VM.
45 MethodHandleCompiler mhc(h, callee, is_invokedynamic, THREAD); 45 MethodHandleCompiler mhc(h, callee, call_profile()->count(), is_invokedynamic, THREAD);
46 if (!HAS_PENDING_EXCEPTION) { 46 if (!HAS_PENDING_EXCEPTION) {
47 methodHandle m = mhc.compile(THREAD); 47 methodHandle m = mhc.compile(THREAD);
48 if (!HAS_PENDING_EXCEPTION) { 48 if (!HAS_PENDING_EXCEPTION) {
49 return CURRENT_ENV->get_object(m())->as_method(); 49 return CURRENT_ENV->get_object(m())->as_method();
50 } 50 }