equal
deleted
inserted
replaced
1847 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm, |
1847 nmethod *SharedRuntime::generate_native_wrapper(MacroAssembler *masm, |
1848 const methodHandle& method, |
1848 const methodHandle& method, |
1849 int compile_id, |
1849 int compile_id, |
1850 BasicType *in_sig_bt, |
1850 BasicType *in_sig_bt, |
1851 VMRegPair *in_regs, |
1851 VMRegPair *in_regs, |
1852 BasicType ret_type) { |
1852 BasicType ret_type, |
|
1853 address critical_entry) { |
1853 #ifdef COMPILER2 |
1854 #ifdef COMPILER2 |
1854 if (method->is_method_handle_intrinsic()) { |
1855 if (method->is_method_handle_intrinsic()) { |
1855 vmIntrinsics::ID iid = method->intrinsic_id(); |
1856 vmIntrinsics::ID iid = method->intrinsic_id(); |
1856 intptr_t start = (intptr_t)__ pc(); |
1857 intptr_t start = (intptr_t)__ pc(); |
1857 int vep_offset = ((intptr_t)__ pc()) - start; |
1858 int vep_offset = ((intptr_t)__ pc()) - start; |
1872 in_ByteSize(-1), |
1873 in_ByteSize(-1), |
1873 (OopMapSet*)NULL); |
1874 (OopMapSet*)NULL); |
1874 } |
1875 } |
1875 |
1876 |
1876 bool is_critical_native = true; |
1877 bool is_critical_native = true; |
1877 address native_func = method->critical_native_function(); |
1878 address native_func = critical_entry; |
1878 if (native_func == NULL) { |
1879 if (native_func == NULL) { |
1879 native_func = method->native_function(); |
1880 native_func = method->native_function(); |
1880 is_critical_native = false; |
1881 is_critical_native = false; |
1881 } |
1882 } |
1882 assert(native_func != NULL, "must have function"); |
1883 assert(native_func != NULL, "must have function"); |