src/share/vm/ci/ciMethodHandle.cpp

changeset 2898
e2a92dd0d3d2
parent 2744
4124a5a27707
child 2903
fabcf26ee72f
equal deleted inserted replaced
2897:3cfb240033d1 2898: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 }

mercurial