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 } |