< prev index next >

src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp

Print this page

1380     assert(frame_complete != -1,    "Must be set");
1381     assert(stack_slots != -1,       "Must be set");
1382     assert(vep_offset != -1,        "Must be set");
1383 #endif
1384 
1385     __ flush();
1386     nmethod* nm = nmethod::new_native_nmethod(method,
1387                                               compile_id,
1388                                               masm->code(),
1389                                               vep_offset,
1390                                               frame_complete,
1391                                               stack_slots,
1392                                               in_ByteSize(-1),
1393                                               in_ByteSize(-1),
1394                                               oop_maps,
1395                                               exception_offset);
1396     if (nm == nullptr) return nm;
1397     if (method->is_continuation_enter_intrinsic()) {
1398       ContinuationEntry::set_enter_code(nm, interpreted_entry_offset);
1399     } else if (method->is_continuation_yield_intrinsic()) {
1400       _cont_doYield_stub = nm;
1401     } else {
1402       guarantee(false, "Unknown Continuation native intrinsic");
1403     }
1404     return nm;
1405   }
1406 
1407   if (method->is_method_handle_intrinsic()) {
1408     vmIntrinsics::ID iid = method->intrinsic_id();
1409     intptr_t start = (intptr_t)__ pc();
1410     int vep_offset = ((intptr_t)__ pc()) - start;
1411 
1412     // First instruction must be a nop as it may need to be patched on deoptimisation
1413     __ nop();
1414     gen_special_dispatch(masm,
1415                          method,
1416                          in_sig_bt,
1417                          in_regs);
1418     int frame_complete = ((intptr_t)__ pc()) - start;  // not complete, period
1419     __ flush();
1420     int stack_slots = SharedRuntime::out_preserve_stack_slots();  // no out slots at all, actually

1380     assert(frame_complete != -1,    "Must be set");
1381     assert(stack_slots != -1,       "Must be set");
1382     assert(vep_offset != -1,        "Must be set");
1383 #endif
1384 
1385     __ flush();
1386     nmethod* nm = nmethod::new_native_nmethod(method,
1387                                               compile_id,
1388                                               masm->code(),
1389                                               vep_offset,
1390                                               frame_complete,
1391                                               stack_slots,
1392                                               in_ByteSize(-1),
1393                                               in_ByteSize(-1),
1394                                               oop_maps,
1395                                               exception_offset);
1396     if (nm == nullptr) return nm;
1397     if (method->is_continuation_enter_intrinsic()) {
1398       ContinuationEntry::set_enter_code(nm, interpreted_entry_offset);
1399     } else if (method->is_continuation_yield_intrinsic()) {
1400       ContinuationEntry::set_yield_code(nm);
1401     } else {
1402       guarantee(false, "Unknown Continuation native intrinsic");
1403     }
1404     return nm;
1405   }
1406 
1407   if (method->is_method_handle_intrinsic()) {
1408     vmIntrinsics::ID iid = method->intrinsic_id();
1409     intptr_t start = (intptr_t)__ pc();
1410     int vep_offset = ((intptr_t)__ pc()) - start;
1411 
1412     // First instruction must be a nop as it may need to be patched on deoptimisation
1413     __ nop();
1414     gen_special_dispatch(masm,
1415                          method,
1416                          in_sig_bt,
1417                          in_regs);
1418     int frame_complete = ((intptr_t)__ pc()) - start;  // not complete, period
1419     __ flush();
1420     int stack_slots = SharedRuntime::out_preserve_stack_slots();  // no out slots at all, actually
< prev index next >