Lines Matching defs:__

48 #define __ _masm->
59 address entry = __ pc();
66 __ lea(rax, Address(rbp,
68 __ cmpptr(rax, rsp); // rax, = maximal rsp for current rbp,
70 __ jcc(Assembler::aboveEqual, L); // check if frame is complete
71 __ stop ("interpreter frame not set up");
72 __ bind(L);
77 __ restore_bcp();
81 __ empty_expression_stack();
82 __ empty_FPU_stack();
84 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_StackOverflowError));
89 address entry = __ pc();
91 __ empty_expression_stack();
92 __ empty_FPU_stack();
95 __ lea(rax, ExternalAddress((address)name));
96 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_ArrayIndexOutOfBoundsException), rax, rbx);
101 address entry = __ pc();
103 __ pop(rax);
106 __ empty_expression_stack();
107 __ empty_FPU_stack();
108 __ call_VM(noreg,
117 address entry = __ pc();
120 __ pop(rbx);
123 __ empty_expression_stack();
124 __ empty_FPU_stack();
126 __ lea(rax, ExternalAddress((address)name));
128 __ call_VM(rax, CAST_FROM_FN_PTR(address, InterpreterRuntime::create_klass_exception), rax, rbx);
131 __ lea(rbx, ExternalAddress((address)message));
133 __ movptr(rbx, NULL_WORD);
135 __ call_VM(rax, CAST_FROM_FN_PTR(address, InterpreterRuntime::create_exception), rax, rbx);
138 __ jump(ExternalAddress(Interpreter::throw_exception_entry()));
144 address entry = __ pc();
146 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), NULL_WORD);
147 __ dispatch_next(state);
154 address entry = __ pc();
160 __ ffree(i);
163 __ empty_FPU_stack();
167 __ MacroAssembler::verify_FPU(1, "generate_return_entry_for compiled");
169 __ MacroAssembler::verify_FPU(0, "generate_return_entry_for compiled");
175 __ subptr(rsp, wordSize);
176 __ movflt(Address(rsp, 0), xmm0);
177 __ fld_s(Address(rsp, 0));
178 __ addptr(rsp, wordSize);
180 __ subptr(rsp, 2*wordSize);
181 __ movdbl(Address(rsp, 0), xmm0);
182 __ fld_d(Address(rsp, 0));
183 __ addptr(rsp, 2*wordSize);
186 __ MacroAssembler::verify_FPU(state == ftos || state == dtos ? 1 : 0, "generate_return_entry_for in interpreter");
189 __ movptr(rsp, Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize));
191 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), NULL_WORD);
193 __ restore_bcp();
194 __ restore_locals();
198 __ cmpb(Address(rsi, 0), Bytecodes::_invokedynamic);
199 __ jcc(Assembler::equal, L_giant_index);
201 __ get_cache_and_index_at_bcp(rbx, rcx, 1, sizeof(u2));
202 __ bind(L_got_cache);
203 __ movl(rbx, Address(rbx, rcx,
206 __ andptr(rbx, 0xFF);
207 __ lea(rsp, Address(rsp, rbx, Interpreter::stackElementScale()));
208 __ dispatch_next(state, step);
212 __ bind(L_giant_index);
213 __ get_cache_and_index_at_bcp(rbx, rcx, 1, sizeof(u4));
214 __ jmp(L_got_cache);
222 address entry = __ pc();
226 __ subptr(rsp, wordSize);
227 __ movflt(Address(rsp, 0), xmm0);
228 __ fld_s(Address(rsp, 0));
229 __ addptr(rsp, wordSize);
231 __ subptr(rsp, 2*wordSize);
232 __ movdbl(Address(rsp, 0), xmm0);
233 __ fld_d(Address(rsp, 0));
234 __ addptr(rsp, 2*wordSize);
237 __ MacroAssembler::verify_FPU(state == ftos || state == dtos ? 1 : 0, "generate_deopt_entry_for in interpreter");
241 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), NULL_WORD);
242 __ restore_bcp();
243 __ restore_locals();
247 __ get_thread(thread);
248 __ cmpptr(Address(thread, Thread::pending_exception_offset()), (int32_t)NULL_WORD);
249 __ jcc(Assembler::zero, L);
250 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_pending_exception));
251 __ should_not_reach_here();
252 __ bind(L);
254 __ dispatch_next(state, step);
281 address entry = __ pc();
283 case T_BOOLEAN: __ c2bool(rax); break;
284 case T_CHAR : __ andptr(rax, 0xFFFF); break;
285 case T_BYTE : __ sign_extend_byte (rax); break;
286 case T_SHORT : __ sign_extend_short(rax); break;
291 __ pop(t); // remove return address first
297 __ fld_d(Address(rsp, 0));
299 __ fstp_s(Address(rsp, 0));
301 __ movflt(xmm0, Address(rsp, 0));
303 __ movdbl(xmm0, Address(rsp, 0));
306 __ fld_d(Address(rsp, 0));
309 __ addptr(rsp, 2 * wordSize);
310 __ push(t); // restore return address
315 __ movptr(rax, Address(rbp, frame::interpreter_frame_oop_temp_offset*wordSize));
317 __ verify_oop(rax);
321 __ ret(0); // return from result handler
326 address entry = __ pc();
327 __ push(state);
328 __ call_VM(noreg, runtime_entry);
329 __ dispatch_via(vtos, Interpreter::_normal_table.table_for(vtos));
355 __ movptr(rax, Address(rbx, methodOopDesc::method_data_offset()));
356 __ testptr(rax, rax);
357 __ jccb(Assembler::zero, no_mdo);
361 __ increment_mask_and_jump(mdo_invocation_counter, increment, mask, rcx, false, Assembler::zero, overflow);
362 __ jmpb(done);
364 __ bind(no_mdo);
366 __ increment_mask_and_jump(invocation_counter, increment, mask, rcx, true, Assembler::zero, overflow);
367 __ bind(done);
373 __ incrementl(Address(rbx,methodOopDesc::interpreter_invocation_counter_offset()));
376 __ movl(rax, backedge_counter); // load backedge counter
378 __ incrementl(rcx, InvocationCounter::count_increment);
379 __ andl(rax, InvocationCounter::count_mask_value); // mask out the status bits
381 __ movl(invocation_counter, rcx); // save invocation count
382 __ addl(rcx, rax); // add both counters
390 __ cmp32(rcx,
392 __ jcc(Assembler::less, *profile_method_continue);
395 __ test_method_data_pointer(rax, *profile_method);
398 __ cmp32(rcx,
400 __ jcc(Assembler::aboveEqual, *overflow);
433 __ movptr(rax, (intptr_t)false);
434 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::frequency_counter_overflow), rax);
436 __ movptr(rbx, Address(rbp, method_offset)); // restore methodOop
440 __ jmp(*do_continue, relocInfo::none);
476 __ cmpl(rdx, (page_size - overhead_size)/Interpreter::stackElementSize);
477 __ jcc(Assembler::belowEqual, after_frame_check);
484 __ push(rsi);
488 __ get_thread(thread);
494 __ lea(rax, Address(noreg, rdx, Interpreter::stackElementScale(), overhead_size));
499 __ cmpptr(stack_base, (int32_t)NULL_WORD);
500 __ jcc(Assembler::notEqual, stack_base_okay);
501 __ stop("stack base is zero");
502 __ bind(stack_base_okay);
504 __ cmpptr(stack_size, 0);
505 __ jcc(Assembler::notEqual, stack_size_okay);
506 __ stop("stack size is zero");
507 __ bind(stack_size_okay);
511 __ addptr(rax, stack_base);
512 __ subptr(rax, stack_size);
517 __ addptr(rax, max_pages * page_size);
520 __ cmpptr(rsp, rax);
521 __ jcc(Assembler::above, after_frame_check_pop);
523 __ pop(rsi); // get saved bcp / (c++ prev state ).
529 __ pop(rax); // return address must be moved if SP is changed
530 __ mov(rsp, rsi);
531 __ push(rax);
536 __ jump(ExternalAddress(StubRoutines::throw_StackOverflowError_entry()));
538 __ bind(after_frame_check_pop);
539 __ pop(rsi);
541 __ bind(after_frame_check);
555 __ movl(rax, access_flags);
556 __ testl(rax, JVM_ACC_SYNCHRONIZED);
557 __ jcc(Assembler::notZero, L);
558 __ stop("method doesn't need synchronization");
559 __ bind(L);
565 __ movl(rax, access_flags);
566 __ testl(rax, JVM_ACC_STATIC);
567 __ movptr(rax, Address(rdi, Interpreter::local_offset_in_bytes(0))); // get receiver (assume this is frequent case)
568 __ jcc(Assembler::zero, done);
569 __ movptr(rax, Address(rbx, methodOopDesc::const_offset()));
570 __ movptr(rax, Address(rax, constMethodOopDesc::constants_offset()));
571 __ movptr(rax, Address(rax, constantPoolOopDesc::pool_holder_offset_in_bytes()));
572 __ movptr(rax, Address(rax, mirror_offset));
573 __ bind(done);
576 __ subptr(rsp, entry_size); // add space for a monitor entry
577 __ movptr(monitor_block_top, rsp); // set new monitor block top
578 __ movptr(Address(rsp, BasicObjectLock::obj_offset_in_bytes()), rax); // store object
579 __ mov(rdx, rsp); // object address
580 __ lock_object(rdx);
589 __ push(rax); // save return address
590 __ enter(); // save old & set new rbp,
593 __ push(rsi); // set sender sp
594 __ push((int32_t)NULL_WORD); // leave last_sp as null
595 __ movptr(rsi, Address(rbx,methodOopDesc::const_offset())); // get constMethodOop
596 __ lea(rsi, Address(rsi,constMethodOopDesc::codes_offset())); // get codebase
597 __ push(rbx); // save methodOop
600 __ movptr(rdx, Address(rbx, in_bytes(methodOopDesc::method_data_offset())));
601 __ testptr(rdx, rdx);
602 __ jcc(Assembler::zero, method_data_continue);
603 __ addptr(rdx, in_bytes(methodDataOopDesc::data_offset()));
604 __ bind(method_data_continue);
605 __ push(rdx); // set the mdp (method data pointer)
607 __ push(0);
610 __ movptr(rdx, Address(rbx, methodOopDesc::const_offset()));
611 __ movptr(rdx, Address(rdx, constMethodOopDesc::constants_offset()));
612 __ movptr(rdx, Address(rdx, constantPoolOopDesc::cache_offset_in_bytes()));
613 __ push(rdx); // set constant pool cache
614 __ push(rdi); // set locals pointer
616 __ push(0); // no bcp
618 __ push(rsi); // set bcp
620 __ push(0); // reserve word for pointer to expression stack bottom
621 __ movptr(Address(rsp, 0), rsp); // set expression stack bottom
641 address entry_point = __ pc();
649 __ cmp32(ExternalAddress(SafepointSynchronize::address_of_state()),
652 __ jcc(Assembler::notEqual, slow_path);
660 __ movptr(rax, Address(rsp, wordSize));
663 __ testptr(rax, rax);
664 __ jcc(Assembler::zero, slow_path);
667 __ movptr(rdx, Address(rbx, methodOopDesc::const_offset()));
668 __ movptr(rdi, Address(rdx, constMethodOopDesc::constants_offset()));
669 __ movl(rdx, Address(rdx, constMethodOopDesc::codes_offset()));
672 __ shrl(rdx, 2*BitsPerByte);
673 __ shll(rdx, exact_log2(in_words(ConstantPoolCacheEntry::size())));
674 __ movptr(rdi, Address(rdi, constantPoolOopDesc::cache_offset_in_bytes()));
688 __ movl(rcx,
692 __ shrl(rcx, 2*BitsPerByte);
693 __ andl(rcx, 0xFF);
694 __ cmpl(rcx, Bytecodes::_getfield);
695 __ jcc(Assembler::notEqual, slow_path);
698 __ movptr(rcx,
702 __ movl(rdx,
713 __ shrl(rdx, ConstantPoolCacheEntry::tos_state_shift);
716 __ cmpl(rdx, btos);
717 __ jcc(Assembler::notEqual, notByte);
718 __ load_signed_byte(rax, field_address);
719 __ jmp(xreturn_path);
721 __ bind(notByte);
722 __ cmpl(rdx, stos);
723 __ jcc(Assembler::notEqual, notShort);
724 __ load_signed_short(rax, field_address);
725 __ jmp(xreturn_path);
727 __ bind(notShort);
728 __ cmpl(rdx, ctos);
729 __ jcc(Assembler::notEqual, notChar);
730 __ load_unsigned_short(rax, field_address);
731 __ jmp(xreturn_path);
733 __ bind(notChar);
736 __ cmpl(rdx, atos);
737 __ jcc(Assembler::equal, okay);
738 __ cmpl(rdx, itos);
739 __ jcc(Assembler::equal, okay);
740 __ stop("what type is this?");
741 __ bind(okay);
745 __ movptr(rax, field_address);
747 __ bind(xreturn_path);
750 __ pop(rdi); // get return address
751 __ mov(rsp, rsi); // set sp to sender sp
752 __ jmp(rdi);
755 __ bind(slow_path);
797 address entry = __ pc();
807 __ movptr(rax, Address(rsp, wordSize));
808 __ testptr(rax, rax);
809 __ jcc(Assembler::zero, slow_path);
822 __ push(rsi);
826 __ movptr(rax, field_address);
830 __ get_thread(rcx);
831 __ g1_write_barrier_pre(noreg /* obj */,
839 __ pop(rsi); // get sender sp
840 __ pop(rdi); // get return address
841 __ mov(rsp, rsi); // set sp to sender sp
842 __ jmp(rdi);
844 __ bind(slow_path);
869 address entry_point = __ pc();
877 __ load_unsigned_short(rcx, size_of_parameters);
887 __ pop(rax); // get return address
891 __ lea(rdi, Address(rsp, rcx, Interpreter::stackElementScale(), -wordSize));
896 __ push((int32_t)NULL_WORD);
898 __ push((int32_t)NULL_WORD);
900 if (inc_counter) __ movl(rcx, invocation_counter); // (pre-)fetch invocation count
907 __ movl(rax, access_flags);
910 __ testl(rax, JVM_ACC_NATIVE);
911 __ jcc(Assembler::notZero, L);
912 __ stop("tried to execute non-native method as native");
913 __ bind(L);
916 __ testl(rax, JVM_ACC_ABSTRACT);
917 __ jcc(Assembler::zero, L);
918 __ stop("tried to execute abstract method in interpreter");
919 __ bind(L);
929 __ get_thread(rax);
932 __ movbool(do_not_unlock_if_synchronized, true);
941 __ bind(continue_after_compile);
946 __ get_thread(rax);
947 __ movbool(do_not_unlock_if_synchronized, false);
959 __ movl(rax, access_flags);
960 __ testl(rax, JVM_ACC_SYNCHRONIZED);
961 __ jcc(Assembler::zero, L);
962 __ stop("method needs synchronization");
963 __ bind(L);
973 __ movptr(rax, monitor_block_top);
974 __ cmpptr(rax, rsp);
975 __ jcc(Assembler::equal, L);
976 __ stop("broken stack frame setup in interpreter");
977 __ bind(L);
982 __ notify_method_entry();
990 __ get_method(method);
991 __ verify_oop(method);
992 __ load_unsigned_short(t, Address(method, methodOopDesc::size_of_parameters_offset()));
993 __ shlptr(t, Interpreter::logStackElementSize);
994 __ addptr(t, 2*wordSize); // allocate two more slots for JNIEnv and possible mirror
995 __ subptr(rsp, t);
996 __ andptr(rsp, -(StackAlignmentInBytes)); // gcc needs 16 byte aligned stacks to do XMM intrinsics
1000 __ movptr(t, Address(method, methodOopDesc::signature_handler_offset()));
1001 __ testptr(t, t);
1002 __ jcc(Assembler::notZero, L);
1003 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::prepare_native_call), method);
1004 __ get_method(method);
1005 __ movptr(t, Address(method, methodOopDesc::signature_handler_offset()));
1006 __ bind(L);
1017 __ call(t);
1018 __ get_method(method); // slow path call blows RBX on DevStudio 5.0
1022 __ movptr(Address(rbp, frame::interpreter_frame_result_handler_offset*wordSize), rax);
1027 __ movl(t, Address(method, methodOopDesc::access_flags_offset()));
1028 __ testl(t, JVM_ACC_STATIC);
1029 __ jcc(Assembler::zero, L);
1031 __ movptr(t, Address(method, methodOopDesc:: const_offset()));
1032 __ movptr(t, Address(t, constMethodOopDesc::constants_offset()));
1033 __ movptr(t, Address(t, constantPoolOopDesc::pool_holder_offset_in_bytes()));
1034 __ movptr(t, Address(t, mirror_offset));
1036 __ movptr(Address(rbp, frame::interpreter_frame_oop_temp_offset * wordSize), t);
1038 __ lea(t, Address(rbp, frame::interpreter_frame_oop_temp_offset * wordSize));
1039 __ movptr(Address(rsp, wordSize), t);
1040 __ bind(L);
1045 __ movptr(rax, Address(method, methodOopDesc::native_function_offset()));
1047 __ cmpptr(rax, unsatisfied.addr());
1048 __ jcc(Assembler::notEqual, L);
1049 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::prepare_native_call), method);
1050 __ get_method(method);
1051 __ verify_oop(method);
1052 __ movptr(rax, Address(method, methodOopDesc::native_function_offset()));
1053 __ bind(L);
1057 __ get_thread(thread);
1058 __ lea(t, Address(thread, JavaThread::jni_environment_offset()));
1059 __ movptr(Address(rsp, 0), t);
1064 __ set_last_Java_frame(thread, noreg, rbp, __ pc());
1069 __ movl(t, Address(thread, JavaThread::thread_state_offset()));
1070 __ cmpl(t, _thread_in_Java);
1071 __ jcc(Assembler::equal, L);
1072 __ stop("Wrong thread state in native stub");
1073 __ bind(L);
1078 __ movl(Address(thread, JavaThread::thread_state_offset()), _thread_in_native);
1079 __ call(rax);
1084 __ restore_cpu_control_state_after_jni();
1100 __ cmpptr(Address(rbp, (frame::interpreter_frame_oop_temp_offset + 1)*wordSize),
1102 __ jcc(Assembler::equal, push_double);
1103 __ cmpptr(Address(rbp, (frame::interpreter_frame_oop_temp_offset + 1)*wordSize),
1105 __ jcc(Assembler::notEqual, L);
1106 __ bind(push_double);
1107 __ push(dtos);
1108 __ bind(L);
1110 __ push(ltos);
1113 __ get_thread(thread);
1114 __ movl(Address(thread, JavaThread::thread_state_offset()), _thread_in_native_trans);
1118 __ membar(Assembler::Membar_mask_bits(
1126 __ serialize_memory(thread, rcx);
1132 __ fldcw(ExternalAddress(StubRoutines::addr_fpu_cntrl_wrd_std()));
1138 __ cmp32(ExternalAddress(SafepointSynchronize::address_of_state()),
1142 __ jcc(Assembler::notEqual, L);
1143 __ cmpl(Address(thread, JavaThread::suspend_flags_offset()), 0);
1144 __ jcc(Assembler::equal, Continue);
1145 __ bind(L);
1153 __ push(thread);
1154 __ call(RuntimeAddress(CAST_FROM_FN_PTR(address,
1156 __ increment(rsp, wordSize);
1157 __ get_thread(thread);
1159 __ bind(Continue);
1163 __ movl(Address(thread, JavaThread::thread_state_offset()), _thread_in_Java);
1165 __ reset_last_Java_frame(thread, true, true);
1168 __ movptr(t, Address(thread, JavaThread::active_handles_offset()));
1169 __ movptr(Address(t, JNIHandleBlock::top_offset_in_bytes()), NULL_WORD);
1175 __ cmpptr(Address(rbp, frame::interpreter_frame_result_handler_offset*wordSize),
1177 __ jcc(Assembler::notEqual, no_oop);
1178 __ cmpptr(Address(rsp, 0), (int32_t)NULL_WORD);
1179 __ pop(ltos);
1180 __ testptr(rax, rax);
1181 __ jcc(Assembler::zero, store_result);
1183 __ movptr(rax, Address(rax, 0));
1184 __ bind(store_result);
1185 __ movptr(Address(rbp, (frame::interpreter_frame_oop_temp_offset)*wordSize), rax);
1187 __ push(ltos);
1188 __ bind(no_oop);
1193 __ cmpl(Address(thread, JavaThread::stack_guard_state_offset()), JavaThread::stack_guard_yellow_disabled);
1194 __ jcc(Assembler::notEqual, no_reguard);
1196 __ pusha();
1197 __ call(RuntimeAddress(CAST_FROM_FN_PTR(address, SharedRuntime::reguard_yellow_pages)));
1198 __ popa();
1200 __ bind(no_reguard);
1206 __ get_method(method); // method is junk from thread_in_native to now.
1207 __ verify_oop(method);
1208 __ movptr(rsi, Address(method,methodOopDesc::const_offset())); // get constMethodOop
1209 __ lea(rsi, Address(rsi,constMethodOopDesc::codes_offset())); // get codebase
1213 __ cmpptr(Address(thread, Thread::pending_exception_offset()), (int32_t)NULL_WORD);
1214 __ jcc(Assembler::zero, L);
1218 __ MacroAssembler::call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_pending_exception));
1219 __ should_not_reach_here();
1220 __ bind(L);
1225 __ movl(t, Address(method, methodOopDesc::access_flags_offset()));
1226 __ testl(t, JVM_ACC_SYNCHRONIZED);
1227 __ jcc(Assembler::zero, L);
1234 __ lea(rdx, monitor); // address of first monitor
1236 __ movptr(t, Address(rdx, BasicObjectLock::obj_offset_in_bytes()));
1237 __ testptr(t, t);
1238 __ jcc(Assembler::notZero, unlock);
1241 __ MacroAssembler::call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::throw_illegal_monitor_state_exception));
1242 __ should_not_reach_here();
1244 __ bind(unlock);
1245 __ unlock_object(rdx);
1247 __ bind(L);
1255 __ notify_method_exit(vtos, InterpreterMacroAssembler::NotifyJVMTI);
1258 __ pop(ltos);
1259 __ movptr(t, Address(rbp, frame::interpreter_frame_result_handler_offset*wordSize));
1260 __ call(t);
1263 __ movptr(t, Address(rbp, frame::interpreter_frame_sender_sp_offset * wordSize)); // get sender sp
1264 __ leave(); // remove frame anchor
1265 __ pop(rdi); // get return address
1266 __ mov(rsp, t); // set sp to sender sp
1267 __ jmp(rdi);
1271 __ bind(invocation_counter_overflow);
1287 address entry_point = __ pc();
1296 __ load_unsigned_short(rcx, size_of_parameters);
1303 __ load_unsigned_short(rdx, size_of_locals); // get size of locals in words
1304 __ subl(rdx, rcx); // rdx = no. of additional locals
1310 __ pop(rax);
1313 __ lea(rdi, Address(rsp, rcx, Interpreter::stackElementScale(), -wordSize));
1320 __ testl(rdx, rdx);
1321 __ jcc(Assembler::lessEqual, exit); // do nothing if rdx <= 0
1322 __ bind(loop);
1323 __ push((int32_t)NULL_WORD); // initialize local variables
1324 __ decrement(rdx); // until everything initialized
1325 __ jcc(Assembler::greater, loop);
1326 __ bind(exit);
1329 if (inc_counter) __ movl(rcx, invocation_counter); // (pre-)fetch invocation count
1335 __ movl(rax, access_flags);
1338 __ testl(rax, JVM_ACC_NATIVE);
1339 __ jcc(Assembler::zero, L);
1340 __ stop("tried to execute native method as non-native");
1341 __ bind(L);
1344 __ testl(rax, JVM_ACC_ABSTRACT);
1345 __ jcc(Assembler::zero, L);
1346 __ stop("tried to execute abstract method in interpreter");
1347 __ bind(L);
1357 __ get_thread(rax);
1360 __ movbool(do_not_unlock_if_synchronized, true);
1369 __ bind(profile_method_continue);
1373 __ bind(continue_after_compile);
1378 __ get_thread(rax);
1379 __ movbool(do_not_unlock_if_synchronized, false);
1392 __ movl(rax, access_flags);
1393 __ testl(rax, JVM_ACC_SYNCHRONIZED);
1394 __ jcc(Assembler::zero, L);
1395 __ stop("method needs synchronization");
1396 __ bind(L);
1406 __ movptr(rax, monitor_block_top);
1407 __ cmpptr(rax, rsp);
1408 __ jcc(Assembler::equal, L);
1409 __ stop("broken stack frame setup in interpreter");
1410 __ bind(L);
1415 __ notify_method_entry();
1417 __ dispatch_next(vtos);
1423 __ bind(profile_method);
1424 __ call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::profile_method));
1425 __ set_method_data_pointer_for_bcp();
1426 __ get_method(rbx);
1427 __ jmp(profile_method_continue);
1430 __ bind(invocation_counter_overflow);
1653 Interpreter::_rethrow_exception_entry = __ pc();
1658 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), NULL_WORD);
1661 __ restore_bcp(); // rsi points to call/send
1662 __ restore_locals();
1665 Interpreter::_throw_exception_entry = __ pc();
1669 __ verify_oop(rax);
1672 __ empty_expression_stack();
1673 __ empty_FPU_stack();
1675 __ call_VM(rdx, CAST_FROM_FN_PTR(address, InterpreterRuntime::exception_handler_for_exception), rax);
1679 __ push_ptr(rdx); // push exception which is now the only value on the stack
1680 __ jmp(rax); // jump to exception handler (may be _remove_activation_entry!)
1697 Interpreter::_remove_activation_preserving_args_entry = __ pc();
1698 __ empty_expression_stack();
1699 __ empty_FPU_stack();
1703 __ get_thread(thread);
1704 __ movl(rdx, Address(thread, JavaThread::popframe_condition_offset()));
1705 __ orl(rdx, JavaThread::popframe_processing_bit);
1706 __ movl(Address(thread, JavaThread::popframe_condition_offset()), rdx);
1720 __ movptr(rdx, Address(rbp, frame::return_addr_offset * wordSize));
1721 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address, InterpreterRuntime::interpreter_contains), rdx);
1722 __ testl(rax, rax);
1723 __ jcc(Assembler::notZero, caller_not_deoptimized);
1726 __ get_method(rax);
1727 __ verify_oop(rax);
1728 __ load_unsigned_short(rax, Address(rax, in_bytes(methodOopDesc::size_of_parameters_offset())));
1729 __ shlptr(rax, Interpreter::logStackElementSize);
1730 __ restore_locals();
1731 __ subptr(rdi, rax);
1732 __ addptr(rdi, wordSize);
1734 __ get_thread(thread);
1735 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address, Deoptimization::popframe_preserve_args), thread, rax, rdi);
1737 __ remove_activation(vtos, rdx,
1743 __ get_thread(thread);
1744 __ movl(Address(thread, JavaThread::popframe_condition_offset()), JavaThread::popframe_force_deopt_reexecution_bit);
1747 __ jmp(rdx);
1749 __ bind(caller_not_deoptimized);
1752 __ remove_activation(vtos, rdx,
1768 __ mov(rax, rsp);
1769 __ movptr(rbx, Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize));
1770 __ get_thread(thread);
1772 __ set_last_Java_frame(thread, noreg, rbp, __ pc());
1773 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address, InterpreterRuntime::popframe_move_outgoing_args), thread, rax, rbx);
1774 __ get_thread(thread);
1775 __ reset_last_Java_frame(thread, true, true);
1777 __ movptr(rsp, Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize));
1778 __ movptr(Address(rbp, frame::interpreter_frame_last_sp_offset * wordSize), NULL_WORD);
1780 __ restore_bcp();
1781 __ restore_locals();
1785 __ set_method_data_pointer_for_bcp();
1789 __ get_thread(thread);
1790 __ movl(Address(thread, JavaThread::popframe_condition_offset()), JavaThread::popframe_inactive);
1792 __ dispatch_next(vtos);
1795 Interpreter::_remove_activation_entry = __ pc();
1798 __ pop_ptr(rax);
1799 __ get_thread(thread);
1800 __ movptr(Address(thread, JavaThread::vm_result_offset()), rax);
1802 __ remove_activation(vtos, rdx, false, true, false);
1804 __ get_thread(thread);
1805 __ movptr(rax, Address(thread, JavaThread::vm_result_offset()));
1806 __ movptr(Address(thread, JavaThread::vm_result_offset()), NULL_WORD);
1807 __ verify_oop(rax);
1817 __ push(rax); // save exception
1818 __ push(rdx); // save return address
1819 __ super_call_VM_leaf(CAST_FROM_FN_PTR(address, SharedRuntime::exception_handler_for_return_address), thread, rdx);
1820 __ mov(rbx, rax); // save exception handler
1821 __ pop(rdx); // restore return address
1822 __ pop(rax); // restore exception
1824 __ jmp(rbx); // jump to exception handler of caller
1832 address entry = __ pc();
1835 __ restore_bcp();
1836 __ restore_locals();
1837 __ empty_expression_stack();
1838 __ empty_FPU_stack();
1839 __ load_earlyret_value(state);
1841 __ get_thread(thread);
1842 __ movptr(rcx, Address(thread, JavaThread::jvmti_thread_state_offset()));
1846 __ movl(cond_addr, JvmtiThreadState::earlyret_inactive);
1848 __ remove_activation(state, rsi,
1852 __ jmp(rsi);
1863 fep = __ pc(); __ push(ftos); __ jmp(L);
1864 dep = __ pc(); __ push(dtos); __ jmp(L);
1865 lep = __ pc(); __ push(ltos); __ jmp(L);
1866 aep = __ pc(); __ push(atos); __ jmp(L);
1868 iep = __ pc(); __ push(itos); // fall through
1869 vep = __ pc(); __ bind(L); // fall through
1890 address entry = __ pc();
1893 __ pop(rcx); // pop return address so expression stack is 'pure'
1894 __ push(state); // save tosca
1897 __ call_VM(noreg, CAST_FROM_FN_PTR(address, SharedRuntime::trace_bytecode), rcx, rax, rdx);
1898 __ mov(rcx, rax); // make sure return address is not destroyed by pop(state)
1899 __ pop(state); // restore tosca
1902 __ jmp(rcx);
1909 __ incrementl(ExternalAddress((address) &BytecodeCounter::_counter_value));
1914 __ incrementl(ExternalAddress((address) &BytecodeHistogram::_counters[t->bytecode()]));
1919 __ mov32(ExternalAddress((address) &BytecodePairHistogram::_index), rbx);
1920 __ shrl(rbx, BytecodePairHistogram::log2_number_of_codes);
1921 __ orl(rbx, ((int)t->bytecode()) << BytecodePairHistogram::log2_number_of_codes);
1924 __ incrementl(ArrayAddress(table, index));
1934 __ call(RuntimeAddress(Interpreter::trace_code(t->tos_in())));
1940 __ cmp32(ExternalAddress((address) &BytecodeCounter::_counter_value),
1942 __ jcc(Assembler::notEqual, L);
1943 __ int3();
1944 __ bind(L);