Lines Matching defs:__

48 #define __ _masm->
59 address entry = __ pc();
64 __ lea(rax, Address(rbp,
67 __ cmpptr(rax, rsp); // rax = maximal rsp for current rbp (stack
69 __ jcc(Assembler::aboveEqual, L); // check if frame is complete
70 __ stop ("interpreter frame not set up");
71 __ bind(L);
76 __ restore_bcp();
80 __ empty_expression_stack();
82 __ call_VM(noreg,
90 address entry = __ pc();
93 __ empty_expression_stack();
96 __ lea(c_rarg1, ExternalAddress((address)name));
97 __ call_VM(noreg,
106 address entry = __ pc();
109 __ pop(c_rarg1);
113 __ empty_expression_stack();
115 __ call_VM(noreg,
126 address entry = __ pc();
129 __ pop(c_rarg2);
133 __ empty_expression_stack();
135 __ lea(c_rarg1, ExternalAddress((address)name));
137 __ call_VM(rax, CAST_FROM_FN_PTR(address,
145 __ lea(c_rarg2, ExternalAddress((address)message));
147 __ movptr(c_rarg2, NULL_WORD);
149 __ call_VM(rax,
154 __ jump(ExternalAddress(Interpreter::throw_exception_entry()));
160 address entry = __ pc();
162 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), (int32_t)NULL_WORD);
163 __ dispatch_next(state);
169 address entry = __ pc();
172 __ movptr(rsp, Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize));
174 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), (int32_t)NULL_WORD);
176 __ restore_bcp();
177 __ restore_locals();
181 __ cmpb(Address(r13, 0), Bytecodes::_invokedynamic);
182 __ jcc(Assembler::equal, L_giant_index);
184 __ get_cache_and_index_at_bcp(rbx, rcx, 1, sizeof(u2));
185 __ bind(L_got_cache);
186 __ movl(rbx, Address(rbx, rcx,
190 __ andl(rbx, 0xFF);
191 __ lea(rsp, Address(rsp, rbx, Address::times_8));
192 __ dispatch_next(state, step);
196 __ bind(L_giant_index);
197 __ get_cache_and_index_at_bcp(rbx, rcx, 1, sizeof(u4));
198 __ jmp(L_got_cache);
207 address entry = __ pc();
209 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), (int32_t)NULL_WORD);
210 __ restore_bcp();
211 __ restore_locals();
215 __ cmpptr(Address(r15_thread, Thread::pending_exception_offset()), (int32_t) NULL_WORD);
216 __ jcc(Assembler::zero, L);
217 __ call_VM(noreg,
220 __ should_not_reach_here();
221 __ bind(L);
223 __ dispatch_next(state, step);
251 address entry = __ pc();
253 case T_BOOLEAN: __ c2bool(rax); break;
254 case T_CHAR : __ movzwl(rax, rax); break;
255 case T_BYTE : __ sign_extend_byte(rax); break;
256 case T_SHORT : __ sign_extend_short(rax); break;
264 __ movptr(rax, Address(rbp, frame::interpreter_frame_oop_temp_offset*wordSize));
266 __ verify_oop(rax);
270 __ ret(0); // return from result handler
277 address entry = __ pc();
278 __ push(state);
279 __ call_VM(noreg, runtime_entry);
280 __ dispatch_via(vtos, Interpreter::_normal_table.table_for(vtos));
311 __ movptr(rax, Address(rbx, methodOopDesc::method_data_offset()));
312 __ testptr(rax, rax);
313 __ jccb(Assembler::zero, no_mdo);
317 __ increment_mask_and_jump(mdo_invocation_counter, increment, mask, rcx, false, Assembler::zero, overflow);
318 __ jmpb(done);
320 __ bind(no_mdo);
322 __ increment_mask_and_jump(invocation_counter, increment, mask, rcx, true, Assembler::zero, overflow);
323 __ bind(done);
330 __ incrementl(Address(rbx,
334 __ movl(rax, backedge_counter); // load backedge counter
336 __ incrementl(rcx, InvocationCounter::count_increment);
337 __ andl(rax, InvocationCounter::count_mask_value); // mask out the status bits
339 __ movl(invocation_counter, rcx); // save invocation count
340 __ addl(rcx, rax); // add both counters
347 __ cmp32(rcx, ExternalAddress((address)&InvocationCounter::InterpreterProfileLimit));
348 __ jcc(Assembler::less, *profile_method_continue);
351 __ test_method_data_pointer(rax, *profile_method);
354 __ cmp32(rcx, ExternalAddress((address)&InvocationCounter::InterpreterInvocationLimit));
355 __ jcc(Assembler::aboveEqual, *overflow);
382 __ movl(c_rarg1, 0);
383 __ call_VM(noreg,
388 __ movptr(rbx, Address(rbp, method_offset)); // restore methodOop
391 __ jmp(*do_continue, relocInfo::none);
427 __ cmpl(rdx, (page_size - overhead_size) / Interpreter::stackElementSize);
428 __ jcc(Assembler::belowEqual, after_frame_check);
437 __ mov(rax, rdx);
438 __ shlptr(rax, Interpreter::logStackElementSize); // 2 slots per parameter.
439 __ addptr(rax, overhead_size);
444 __ cmpptr(stack_base, (int32_t)NULL_WORD);
445 __ jcc(Assembler::notEqual, stack_base_okay);
446 __ stop("stack base is zero");
447 __ bind(stack_base_okay);
449 __ cmpptr(stack_size, 0);
450 __ jcc(Assembler::notEqual, stack_size_okay);
451 __ stop("stack size is zero");
452 __ bind(stack_size_okay);
456 __ addptr(rax, stack_base);
457 __ subptr(rax, stack_size);
464 __ addptr(rax, max_pages * page_size);
467 __ cmpptr(rsp, rax);
468 __ jcc(Assembler::above, after_frame_check);
474 __ pop(rax); // return address must be moved if SP is changed
475 __ mov(rsp, r13);
476 __ push(rax);
481 __ jump(ExternalAddress(StubRoutines::throw_StackOverflowError_entry()));
484 __ bind(after_frame_check);
508 __ movl(rax, access_flags);
509 __ testl(rax, JVM_ACC_SYNCHRONIZED);
510 __ jcc(Assembler::notZero, L);
511 __ stop("method doesn't need synchronization");
512 __ bind(L);
520 __ movl(rax, access_flags);
521 __ testl(rax, JVM_ACC_STATIC);
523 __ movptr(rax, Address(r14, Interpreter::local_offset_in_bytes(0)));
524 __ jcc(Assembler::zero, done);
525 __ movptr(rax, Address(rbx, methodOopDesc::const_offset()));
526 __ movptr(rax, Address(rax, constMethodOopDesc::constants_offset()));
527 __ movptr(rax, Address(rax,
529 __ movptr(rax, Address(rax, mirror_offset));
534 __ testptr(rax, rax);
535 __ jcc(Assembler::notZero, L);
536 __ stop("synchronization object is NULL");
537 __ bind(L);
541 __ bind(done);
545 __ subptr(rsp, entry_size); // add space for a monitor entry
546 __ movptr(monitor_block_top, rsp); // set new monitor block top
548 __ movptr(Address(rsp, BasicObjectLock::obj_offset_in_bytes()), rax);
549 __ movptr(c_rarg1, rsp); // object address
550 __ lock_object(c_rarg1);
564 __ push(rax); // save return address
565 __ enter(); // save old & set new rbp
566 __ push(r13); // set sender sp
567 __ push((int)NULL_WORD); // leave last_sp as null
568 __ movptr(r13, Address(rbx, methodOopDesc::const_offset())); // get constMethodOop
569 __ lea(r13, Address(r13, constMethodOopDesc::codes_offset())); // get codebase
570 __ push(rbx); // save methodOop
573 __ movptr(rdx, Address(rbx, in_bytes(methodOopDesc::method_data_offset())));
574 __ testptr(rdx, rdx);
575 __ jcc(Assembler::zero, method_data_continue);
576 __ addptr(rdx, in_bytes(methodDataOopDesc::data_offset()));
577 __ bind(method_data_continue);
578 __ push(rdx); // set the mdp (method data pointer)
580 __ push(0);
583 __ movptr(rdx, Address(rbx, methodOopDesc::const_offset()));
584 __ movptr(rdx, Address(rdx, constMethodOopDesc::constants_offset()));
585 __ movptr(rdx, Address(rdx, constantPoolOopDesc::cache_offset_in_bytes()));
586 __ push(rdx); // set constant pool cache
587 __ push(r14); // set locals pointer
589 __ push(0); // no bcp
591 __ push(r13); // set bcp
593 __ push(0); // reserve word for pointer to expression stack bottom
594 __ movptr(Address(rsp, 0), rsp); // set expression stack bottom
611 address entry_point = __ pc();
623 __ cmp32(ExternalAddress(SafepointSynchronize::address_of_state()),
626 __ jcc(Assembler::notEqual, slow_path);
628 __ movptr(rax, Address(rsp, wordSize));
631 __ testptr(rax, rax);
632 __ jcc(Assembler::zero, slow_path);
635 __ movptr(rdx, Address(rbx, methodOopDesc::const_offset()));
636 __ movptr(rdi, Address(rdx, constMethodOopDesc::constants_offset()));
637 __ movl(rdx, Address(rdx, constMethodOopDesc::codes_offset()));
640 __ shrl(rdx, 2 * BitsPerByte);
641 __ shll(rdx, exact_log2(in_words(ConstantPoolCacheEntry::size())));
642 __ movptr(rdi, Address(rdi, constantPoolOopDesc::cache_offset_in_bytes()));
654 __ movl(rcx,
660 __ shrl(rcx, 2 * BitsPerByte);
661 __ andl(rcx, 0xFF);
662 __ cmpl(rcx, Bytecodes::_getfield);
663 __ jcc(Assembler::notEqual, slow_path);
666 __ movptr(rcx,
673 __ movl(rdx,
686 __ shrl(rdx, ConstantPoolCacheEntry::tos_state_shift);
690 __ cmpl(rdx, atos);
691 __ jcc(Assembler::notEqual, notObj);
693 __ load_heap_oop(rax, field_address);
694 __ jmp(xreturn_path);
696 __ bind(notObj);
697 __ cmpl(rdx, itos);
698 __ jcc(Assembler::notEqual, notInt);
700 __ movl(rax, field_address);
701 __ jmp(xreturn_path);
703 __ bind(notInt);
704 __ cmpl(rdx, btos);
705 __ jcc(Assembler::notEqual, notByte);
707 __ load_signed_byte(rax, field_address);
708 __ jmp(xreturn_path);
710 __ bind(notByte);
711 __ cmpl(rdx, stos);
712 __ jcc(Assembler::notEqual, notShort);
714 __ load_signed_short(rax, field_address);
715 __ jmp(xreturn_path);
717 __ bind(notShort);
720 __ cmpl(rdx, ctos);
721 __ jcc(Assembler::equal, okay);
722 __ stop("what type is this?");
723 __ bind(okay);
726 __ load_unsigned_short(rax, field_address);
728 __ bind(xreturn_path);
731 __ pop(rdi);
732 __ mov(rsp, r13);
733 __ jmp(rdi);
734 __ ret(0);
737 __ bind(slow_path);
778 address entry = __ pc();
789 __ movptr(rax, Address(rsp, wordSize));
791 __ testptr(rax, rax);
792 __ jcc(Assembler::zero, slow_path);
804 __ load_heap_oop(rax, field_address);
808 __ g1_write_barrier_pre(noreg /* obj */,
816 __ pop(rdi); // get return address
817 __ mov(rsp, r13); // set sp to sender sp
818 __ jmp(rdi);
819 __ ret(0);
822 __ bind(slow_path);
845 address entry_point = __ pc();
855 __ load_unsigned_short(rcx, size_of_parameters);
864 __ pop(rax); // get return address
869 __ lea(r14, Address(rsp, rcx, Address::times_8, -wordSize));
873 __ push((int) NULL_WORD);
876 __ push((int) NULL_WORD);
879 __ movl(rcx, invocation_counter); // (pre-)fetch invocation count
887 __ movl(rax, access_flags);
890 __ testl(rax, JVM_ACC_NATIVE);
891 __ jcc(Assembler::notZero, L);
892 __ stop("tried to execute non-native method as native");
893 __ bind(L);
897 __ testl(rax, JVM_ACC_ABSTRACT);
898 __ jcc(Assembler::zero, L);
899 __ stop("tried to execute abstract method in interpreter");
900 __ bind(L);
912 __ movbool(do_not_unlock_if_synchronized, true);
921 __ bind(continue_after_compile);
926 __ movbool(do_not_unlock_if_synchronized, false);
938 __ movl(rax, access_flags);
939 __ testl(rax, JVM_ACC_SYNCHRONIZED);
940 __ jcc(Assembler::zero, L);
941 __ stop("method needs synchronization");
942 __ bind(L);
953 __ movptr(rax, monitor_block_top);
954 __ cmpptr(rax, rsp);
955 __ jcc(Assembler::equal, L);
956 __ stop("broken stack frame setup in interpreter");
957 __ bind(L);
962 __ notify_method_entry();
969 __ get_method(method);
970 __ verify_oop(method);
971 __ load_unsigned_short(t,
974 __ shll(t, Interpreter::logStackElementSize);
976 __ subptr(rsp, t);
977 __ subptr(rsp, frame::arg_reg_save_area_bytes); // windows
978 __ andptr(rsp, -16); // must be 16 byte boundary (see amd64 ABI)
983 __ movptr(t, Address(method, methodOopDesc::signature_handler_offset()));
984 __ testptr(t, t);
985 __ jcc(Assembler::notZero, L);
986 __ call_VM(noreg,
990 __ get_method(method);
991 __ movptr(t, Address(method, methodOopDesc::signature_handler_offset()));
992 __ bind(L);
1007 __ call(t);
1008 __ get_method(method); // slow path can do a GC, reload RBX
1013 __ movptr(Address(rbp,
1021 __ movl(t, Address(method, methodOopDesc::access_flags_offset()));
1022 __ testl(t, JVM_ACC_STATIC);
1023 __ jcc(Assembler::zero, L);
1025 __ movptr(t, Address(method, methodOopDesc::const_offset()));
1026 __ movptr(t, Address(t, constMethodOopDesc::constants_offset()));
1027 __ movptr(t, Address(t, constantPoolOopDesc::pool_holder_offset_in_bytes()));
1028 __ movptr(t, Address(t, mirror_offset));
1030 __ movptr(Address(rbp, frame::interpreter_frame_oop_temp_offset * wordSize),
1033 __ lea(c_rarg1,
1035 __ bind(L);
1041 __ movptr(rax, Address(method, methodOopDesc::native_function_offset()));
1043 __ movptr(rscratch2, unsatisfied.addr());
1044 __ cmpptr(rax, rscratch2);
1045 __ jcc(Assembler::notEqual, L);
1046 __ call_VM(noreg,
1050 __ get_method(method);
1051 __ verify_oop(method);
1052 __ movptr(rax, Address(method, methodOopDesc::native_function_offset()));
1053 __ bind(L);
1057 __ lea(c_rarg0, Address(r15_thread, JavaThread::jni_environment_offset()));
1061 __ set_last_Java_frame(rsp, rbp, (address) __ pc());
1067 __ movl(t, Address(r15_thread, JavaThread::thread_state_offset()));
1068 __ cmpl(t, _thread_in_Java);
1069 __ jcc(Assembler::equal, L);
1070 __ stop("Wrong thread state in native stub");
1071 __ bind(L);
1077 __ movl(Address(r15_thread, JavaThread::thread_state_offset()),
1081 __ call(rax);
1085 __ restore_cpu_control_state_after_jni();
1092 __ push(dtos);
1093 __ push(ltos);
1096 __ movl(Address(r15_thread, JavaThread::thread_state_offset()),
1102 __ membar(Assembler::Membar_mask_bits(
1110 __ serialize_memory(r15_thread, rscratch2);
1117 __ cmp32(ExternalAddress(SafepointSynchronize::address_of_state()),
1121 __ jcc(Assembler::notEqual, L);
1122 __ cmpl(Address(r15_thread, JavaThread::suspend_flags_offset()), 0);
1123 __ jcc(Assembler::equal, Continue);
1124 __ bind(L);
1133 __ mov(c_rarg0, r15_thread);
1134 __ mov(r12, rsp); // remember sp (can only use r12 if not using call_VM)
1135 __ subptr(rsp, frame::arg_reg_save_area_bytes); // windows
1136 __ andptr(rsp, -16); // align stack as required by ABI
1137 __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, JavaThread::check_special_condition_for_native_trans)));
1138 __ mov(rsp, r12); // restore sp
1139 __ reinit_heapbase();
1140 __ bind(Continue);
1144 __ movl(Address(r15_thread, JavaThread::thread_state_offset()), _thread_in_Java);
1147 __ reset_last_Java_frame(true, true);
1150 __ movptr(t, Address(r15_thread, JavaThread::active_handles_offset()));
1151 __ movptr(Address(t, JNIHandleBlock::top_offset_in_bytes()), (int32_t)NULL_WORD);
1158 __ lea(t, ExternalAddress(AbstractInterpreter::result_handler(T_OBJECT)));
1159 __ cmpptr(t, Address(rbp, frame::interpreter_frame_result_handler_offset*wordSize));
1160 __ jcc(Assembler::notEqual, no_oop);
1162 __ pop(ltos);
1163 __ testptr(rax, rax);
1164 __ jcc(Assembler::zero, store_result);
1165 __ movptr(rax, Address(rax, 0));
1166 __ bind(store_result);
1167 __ movptr(Address(rbp, frame::interpreter_frame_oop_temp_offset*wordSize), rax);
1169 __ push(ltos);
1170 __ bind(no_oop);
1176 __ cmpl(Address(r15_thread, JavaThread::stack_guard_state_offset()),
1178 __ jcc(Assembler::notEqual, no_reguard);
1180 __ pusha(); // XXX only save smashed registers
1181 __ mov(r12, rsp); // remember sp (can only use r12 if not using call_VM)
1182 __ subptr(rsp, frame::arg_reg_save_area_bytes); // windows
1183 __ andptr(rsp, -16); // align stack as required by ABI
1184 __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, SharedRuntime::reguard_yellow_pages)));
1185 __ mov(rsp, r12); // restore sp
1186 __ popa(); // XXX only restore smashed registers
1187 __ reinit_heapbase();
1189 __ bind(no_reguard);
1196 __ get_method(method);
1197 __ verify_oop(method);
1201 __ movptr(r13, Address(method, methodOopDesc::const_offset())); // get constMethodOop
1202 __ lea(r13, Address(r13, constMethodOopDesc::codes_offset())); // get codebase
1206 __ cmpptr(Address(r15_thread, Thread::pending_exception_offset()), (int32_t) NULL_WORD);
1207 __ jcc(Assembler::zero, L);
1212 __ MacroAssembler::call_VM(noreg,
1215 __ should_not_reach_here();
1216 __ bind(L);
1222 __ movl(t, Address(method, methodOopDesc::access_flags_offset()));
1223 __ testl(t, JVM_ACC_SYNCHRONIZED);
1224 __ jcc(Assembler::zero, L);
1237 __ lea(c_rarg1, monitor); // address of first monitor
1239 __ movptr(t, Address(c_rarg1, BasicObjectLock::obj_offset_in_bytes()));
1240 __ testptr(t, t);
1241 __ jcc(Assembler::notZero, unlock);
1244 __ MacroAssembler::call_VM(noreg,
1247 __ should_not_reach_here();
1249 __ bind(unlock);
1250 __ unlock_object(c_rarg1);
1252 __ bind(L);
1260 __ notify_method_exit(vtos, InterpreterMacroAssembler::NotifyJVMTI);
1265 __ pop(ltos);
1266 __ pop(dtos);
1268 __ movptr(t, Address(rbp,
1270 __ call(t);
1273 __ movptr(t, Address(rbp,
1276 __ leave(); // remove frame anchor
1277 __ pop(rdi); // get return address
1278 __ mov(rsp, t); // set sp to sender sp
1279 __ jmp(rdi);
1283 __ bind(invocation_counter_overflow);
1299 address entry_point = __ pc();
1310 __ load_unsigned_short(rcx, size_of_parameters);
1316 __ load_unsigned_short(rdx, size_of_locals); // get size of locals in words
1317 __ subl(rdx, rcx); // rdx = no. of additional locals
1320 // __ incrementl(rdx);
1321 // __ andl(rdx, -2);
1327 __ pop(rax);
1330 __ lea(r14, Address(rsp, rcx, Address::times_8, -wordSize));
1337 __ testl(rdx, rdx);
1338 __ jcc(Assembler::lessEqual, exit); // do nothing if rdx <= 0
1339 __ bind(loop);
1340 __ push((int) NULL_WORD); // initialize local variables
1341 __ decrementl(rdx); // until everything initialized
1342 __ jcc(Assembler::greater, loop);
1343 __ bind(exit);
1348 __ movl(rcx, invocation_counter);
1355 __ movl(rax, access_flags);
1358 __ testl(rax, JVM_ACC_NATIVE);
1359 __ jcc(Assembler::zero, L);
1360 __ stop("tried to execute native method as non-native");
1361 __ bind(L);
1365 __ testl(rax, JVM_ACC_ABSTRACT);
1366 __ jcc(Assembler::zero, L);
1367 __ stop("tried to execute abstract method in interpreter");
1368 __ bind(L);
1380 __ movbool(do_not_unlock_if_synchronized, true);
1391 __ bind(profile_method_continue);
1396 __ bind(continue_after_compile);
1402 __ movbool(do_not_unlock_if_synchronized, false);
1415 __ movl(rax, access_flags);
1416 __ testl(rax, JVM_ACC_SYNCHRONIZED);
1417 __ jcc(Assembler::zero, L);
1418 __ stop("method needs synchronization");
1419 __ bind(L);
1430 __ movptr(rax, monitor_block_top);
1431 __ cmpptr(rax, rsp);
1432 __ jcc(Assembler::equal, L);
1433 __ stop("broken stack frame setup in interpreter");
1434 __ bind(L);
1439 __ notify_method_entry();
1441 __ dispatch_next(vtos);
1447 __ bind(profile_method);
1448 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::profile_method));
1449 __ set_method_data_pointer_for_bcp();
1450 __ get_method(rbx);
1451 __ jmp(profile_method_continue);
1454 __ bind(invocation_counter_overflow);
1673 Interpreter::_rethrow_exception_entry = __ pc();
1676 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), (int32_t)NULL_WORD);
1679 __ restore_bcp(); // r13 points to call/send
1680 __ restore_locals();
1681 __ reinit_heapbase(); // restore r12 as heapbase.
1683 Interpreter::_throw_exception_entry = __ pc();
1687 __ verify_oop(rax);
1688 __ mov(c_rarg1, rax);
1692 __ empty_expression_stack();
1694 __ call_VM(rdx,
1701 __ push_ptr(rdx); // push exception which is now the only value on the stack
1702 __ jmp(rax); // jump to exception handler (may be _remove_activation_entry!)
1721 Interpreter::_remove_activation_preserving_args_entry = __ pc();
1722 __ empty_expression_stack();
1727 __ movl(rdx, Address(r15_thread, JavaThread::popframe_condition_offset()));
1728 __ orl(rdx, JavaThread::popframe_processing_bit);
1729 __ movl(Address(r15_thread, JavaThread::popframe_condition_offset()), rdx);
1743 __ movptr(c_rarg1, Address(rbp, frame::return_addr_offset * wordSize));
1744 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address,
1746 __ testl(rax, rax);
1747 __ jcc(Assembler::notZero, caller_not_deoptimized);
1751 __ get_method(rax);
1752 __ load_unsigned_short(rax, Address(rax, in_bytes(methodOopDesc::
1754 __ shll(rax, Interpreter::logStackElementSize);
1755 __ restore_locals(); // XXX do we need this?
1756 __ subptr(r14, rax);
1757 __ addptr(r14, wordSize);
1759 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address,
1764 __ remove_activation(vtos, rdx,
1771 __ movl(Address(r15_thread, JavaThread::popframe_condition_offset()),
1775 __ jmp(rdx);
1777 __ bind(caller_not_deoptimized);
1780 __ remove_activation(vtos, rdx, /* rdx result (retaddr) is not used */
1796 __ mov(c_rarg1, rsp);
1797 __ movptr(c_rarg2, Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize));
1799 __ set_last_Java_frame(noreg, rbp, __ pc());
1800 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address, InterpreterRuntime::popframe_move_outgoing_args), r15_thread, c_rarg1, c_rarg2);
1801 __ reset_last_Java_frame(true, true);
1803 __ movptr(rsp, Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize));
1804 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), (int32_t)NULL_WORD);
1806 __ restore_bcp(); // XXX do we need this?
1807 __ restore_locals(); // XXX do we need this?
1811 __ set_method_data_pointer_for_bcp();
1815 __ movl(Address(r15_thread, JavaThread::popframe_condition_offset()),
1818 __ dispatch_next(vtos);
1821 Interpreter::_remove_activation_entry = __ pc();
1824 __ pop_ptr(rax);
1825 __ movptr(Address(r15_thread, JavaThread::vm_result_offset()), rax);
1827 __ remove_activation(vtos, rdx, false, true, false);
1829 __ movptr(rax, Address(r15_thread, JavaThread::vm_result_offset()));
1830 __ movptr(Address(r15_thread, JavaThread::vm_result_offset()), (int32_t)NULL_WORD);
1831 __ verify_oop(rax);
1841 __ push(rax); // save exception
1842 __ push(rdx); // save return address
1843 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address,
1846 __ mov(rbx, rax); // save exception handler
1847 __ pop(rdx); // restore return address
1848 __ pop(rax); // restore exception
1850 __ jmp(rbx); // jump to exception
1859 address entry = __ pc();
1861 __ restore_bcp();
1862 __ restore_locals();
1863 __ empty_expression_stack();
1864 __ load_earlyret_value(state);
1866 __ movptr(rdx, Address(r15_thread, JavaThread::jvmti_thread_state_offset()));
1870 __ movl(cond_addr, JvmtiThreadState::earlyret_inactive);
1872 __ remove_activation(state, rsi,
1876 __ jmp(rsi);
1897 aep = __ pc(); __ push_ptr(); __ jmp(L);
1898 fep = __ pc(); __ push_f(); __ jmp(L);
1899 dep = __ pc(); __ push_d(); __ jmp(L);
1900 lep = __ pc(); __ push_l(); __ jmp(L);
1902 iep = __ pc(); __ push_i();
1903 vep = __ pc();
1904 __ bind(L);
1925 address entry = __ pc();
1927 __ push(state);
1928 __ push(c_rarg0);
1929 __ push(c_rarg1);
1930 __ push(c_rarg2);
1931 __ push(c_rarg3);
1932 __ mov(c_rarg2, rax); // Pass itos
1934 __ movflt(xmm3, xmm0); // Pass ftos
1936 __ call_VM(noreg,
1939 __ pop(c_rarg3);
1940 __ pop(c_rarg2);
1941 __ pop(c_rarg1);
1942 __ pop(c_rarg0);
1943 __ pop(state);
1944 __ ret(0); // return from result handler
1950 __ incrementl(ExternalAddress((address) &BytecodeCounter::_counter_value));
1954 __ incrementl(ExternalAddress((address) &BytecodeHistogram::_counters[t->bytecode()]));
1958 __ mov32(rbx, ExternalAddress((address) &BytecodePairHistogram::_index));
1959 __ shrl(rbx, BytecodePairHistogram::log2_number_of_codes);
1960 __ orl(rbx,
1963 __ mov32(ExternalAddress((address) &BytecodePairHistogram::_index), rbx);
1964 __ lea(rscratch1, ExternalAddress((address) BytecodePairHistogram::_counters));
1965 __ incrementl(Address(rscratch1, rbx, Address::times_4));
1976 __ mov(r12, rsp); // remember sp (can only use r12 if not using call_VM)
1977 __ andptr(rsp, -16); // align stack as required by ABI
1978 __ call(RuntimeAddress(Interpreter::trace_code(t->tos_in())));
1979 __ mov(rsp, r12); // restore sp
1980 __ reinit_heapbase();
1986 __ cmp32(ExternalAddress((address) &BytecodeCounter::_counter_value),
1988 __ jcc(Assembler::notEqual, L);
1989 __ int3();
1990 __ bind(L);