@@ -902,7 +902,7 @@ void MacroAssembler::resize_frame(Register offset, Register tmp) {
902902#ifdef ASSERT
903903 assert_different_registers (offset, tmp, R1_SP );
904904 andi_ (tmp, offset, frame::alignment_in_bytes-1 );
905- asm_assert_eq (" resize_frame: unaligned" , 0x204 );
905+ asm_assert_eq (" resize_frame: unaligned" );
906906#endif
907907
908908 // tmp <- *(SP)
@@ -941,7 +941,7 @@ void MacroAssembler::push_frame(Register bytes, Register tmp) {
941941#ifdef ASSERT
942942 assert (bytes != R0 , " r0 not allowed here" );
943943 andi_ (R0 , bytes, frame::alignment_in_bytes-1 );
944- asm_assert_eq (" push_frame(Reg, Reg): unaligned" , 0x203 );
944+ asm_assert_eq (" push_frame(Reg, Reg): unaligned" );
945945#endif
946946 neg (tmp, bytes);
947947 stdux (R1_SP , R1_SP , tmp);
@@ -2313,7 +2313,7 @@ void MacroAssembler::tlab_allocate(
23132313 Label L;
23142314 andi_ (R0 , new_top, MinObjAlignmentInBytesMask);
23152315 beq (CCR0 , L);
2316- stop (" updated TLAB free is not properly aligned" , 0x934 );
2316+ stop (" updated TLAB free is not properly aligned" );
23172317 bind (L);
23182318 }
23192319#endif // ASSERT
@@ -2792,7 +2792,7 @@ void MacroAssembler::rtm_inflated_locking(ConditionRegister flag,
27922792 ld (mark_word, oopDesc::mark_offset_in_bytes (), obj);
27932793#ifdef ASSERT
27942794 andi_ (R0 , mark_word, markWord::monitor_value);
2795- asm_assert_ne (" must be inflated" , 0xa754 ); // Deflating only allowed at safepoint.
2795+ asm_assert_ne (" must be inflated" ); // Deflating only allowed at safepoint.
27962796#endif
27972797 addi (owner_addr_Reg, mark_word, owner_offset);
27982798 }
@@ -2929,7 +2929,7 @@ void MacroAssembler::compiler_fast_lock_object(ConditionRegister flag, Register
29292929 // Invariant 1: _recursions should be 0.
29302930 // assert(ObjectMonitor::recursions_size_in_bytes() == 8, "unexpected size");
29312931 asm_assert_mem8_is_zero (ObjectMonitor::recursions_offset_in_bytes (), temp,
2932- " monitor->_recursions should be 0" , - 1 );
2932+ " monitor->_recursions should be 0" );
29332933# endif
29342934
29352935#if INCLUDE_RTM_OPT
@@ -3058,7 +3058,7 @@ void MacroAssembler::set_last_Java_frame(Register last_Java_sp, Register last_Ja
30583058
30593059 // Verify that last_Java_pc was zeroed on return to Java
30603060 asm_assert_mem8_is_zero (in_bytes (JavaThread::last_Java_pc_offset ()), R16_thread,
3061- " last_Java_pc not zeroed before leaving Java" , 0x200 );
3061+ " last_Java_pc not zeroed before leaving Java" );
30623062
30633063 // When returning from calling out from Java mode the frame anchor's
30643064 // last_Java_pc will always be set to NULL. It is set here so that
@@ -3074,7 +3074,7 @@ void MacroAssembler::set_last_Java_frame(Register last_Java_sp, Register last_Ja
30743074
30753075void MacroAssembler::reset_last_Java_frame (void ) {
30763076 asm_assert_mem8_isnot_zero (in_bytes (JavaThread::last_Java_sp_offset ()),
3077- R16_thread, " SP was not set, still zero" , 0x202 );
3077+ R16_thread, " SP was not set, still zero" );
30783078
30793079 BLOCK_COMMENT (" reset_last_Java_frame {" );
30803080 li (R0 , 0 );
@@ -4327,21 +4327,21 @@ void MacroAssembler::multiply_to_len(Register x, Register xlen,
43274327 bind (L_done);
43284328} // multiply_to_len
43294329
4330- void MacroAssembler::asm_assert (bool check_equal, const char *msg, int id ) {
4330+ void MacroAssembler::asm_assert (bool check_equal, const char *msg) {
43314331#ifdef ASSERT
43324332 Label ok;
43334333 if (check_equal) {
43344334 beq (CCR0 , ok);
43354335 } else {
43364336 bne (CCR0 , ok);
43374337 }
4338- stop (msg, id );
4338+ stop (msg);
43394339 bind (ok);
43404340#endif
43414341}
43424342
43434343void MacroAssembler::asm_assert_mems_zero (bool check_equal, int size, int mem_offset,
4344- Register mem_base, const char * msg, int id ) {
4344+ Register mem_base, const char * msg) {
43454345#ifdef ASSERT
43464346 switch (size) {
43474347 case 4 :
@@ -4355,7 +4355,7 @@ void MacroAssembler::asm_assert_mems_zero(bool check_equal, int size, int mem_of
43554355 default :
43564356 ShouldNotReachHere ();
43574357 }
4358- asm_assert (check_equal, msg, id );
4358+ asm_assert (check_equal, msg);
43594359#endif // ASSERT
43604360}
43614361
@@ -4430,32 +4430,20 @@ void MacroAssembler::verify_oop_addr(RegisterOrConstant offs, Register base, con
44304430 restore_volatile_gprs (R1_SP , -nbytes_save); // except R0
44314431}
44324432
4433- const char * stop_types[] = {
4434- " stop" ,
4435- " untested" ,
4436- " unimplemented" ,
4437- " shouldnotreachhere"
4438- };
4439-
4440- static void stop_on_request (int tp, const char * msg) {
4441- tty->print (" PPC assembly code requires stop: (%s) %s\n " , stop_types[tp%/* stop_end*/ 4 ], msg);
4442- guarantee (false , " PPC assembly code requires stop: %s" , msg);
4443- }
4444-
44454433// Call a C-function that prints output.
4446- void MacroAssembler::stop (int type, const char * msg, int id ) {
4434+ void MacroAssembler::stop (int type, const char * msg) {
44474435#ifndef PRODUCT
4448- block_comment (err_msg (" stop: %s %s {" , stop_types[ type%stop_end] , msg));
4436+ block_comment (err_msg (" stop(type %d): %s {" , type, msg));
44494437#else
44504438 block_comment (" stop {" );
44514439#endif
44524440
4453- // setup arguments
4454- load_const_optimized ( R3_ARG1 , type);
4455- load_const_optimized (R4_ARG2 , (void *)msg, /* tmp= */ R0 );
4456- call_VM_leaf ( CAST_FROM_FN_PTR (address, stop_on_request), R3_ARG1 , R4_ARG2 );
4457- illtrap ( );
4458- emit_int32 (id);
4441+ if (type != stop_shouldnotreachhere) {
4442+ // Use R0 to pass msg. "shouldnotreachhere" preserves R0.
4443+ load_const_optimized (R0 , (void *)msg);
4444+ }
4445+ tdi_unchecked (traptoUnconditional, 0 /* reg 0 */ , type );
4446+
44594447 block_comment (" } stop;" );
44604448}
44614449
0 commit comments