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