@@ -714,7 +714,7 @@ void LIR_Assembler::explicit_null_check(Register addr, CodeEmitInfo* info) {
714714
715715
716716// Attention: caller must encode oop if needed
717- int LIR_Assembler::store (LIR_Opr from_reg, Register base, int offset, BasicType type, bool wide, bool unaligned ) {
717+ int LIR_Assembler::store (LIR_Opr from_reg, Register base, int offset, BasicType type, bool wide) {
718718 int store_offset;
719719 if (!Assembler::is_simm16 (offset)) {
720720 // For offsets larger than a simm16 we setup the offset.
@@ -794,7 +794,7 @@ int LIR_Assembler::store(LIR_Opr from_reg, Register base, Register disp, BasicTy
794794}
795795
796796
797- int LIR_Assembler::load (Register base, int offset, LIR_Opr to_reg, BasicType type, bool wide, bool unaligned ) {
797+ int LIR_Assembler::load (Register base, int offset, LIR_Opr to_reg, BasicType type, bool wide) {
798798 int load_offset;
799799 if (!Assembler::is_simm16 (offset)) {
800800 // For offsets larger than a simm16 we setup the offset.
@@ -965,7 +965,7 @@ void LIR_Assembler::const2mem(LIR_Opr src, LIR_Opr dest, BasicType type, CodeEmi
965965 offset = store (tmp, base, addr->index ()->as_pointer_register (), type, wide);
966966 } else {
967967 assert (Assembler::is_simm16 (addr->disp ()), " can't handle larger addresses" );
968- offset = store (tmp, base, addr->disp (), type, wide, false );
968+ offset = store (tmp, base, addr->disp (), type, wide);
969969 }
970970
971971 if (info != NULL ) {
@@ -1120,7 +1120,7 @@ Address LIR_Assembler::as_Address_lo(LIR_Address* addr) {
11201120
11211121
11221122void LIR_Assembler::mem2reg (LIR_Opr src_opr, LIR_Opr dest, BasicType type,
1123- LIR_PatchCode patch_code, CodeEmitInfo* info, bool wide, bool unaligned ) {
1123+ LIR_PatchCode patch_code, CodeEmitInfo* info, bool wide) {
11241124
11251125 assert (type != T_METADATA, " load of metadata ptr not supported" );
11261126 LIR_Address* addr = src_opr->as_address_ptr ();
@@ -1170,7 +1170,7 @@ void LIR_Assembler::mem2reg(LIR_Opr src_opr, LIR_Opr dest, BasicType type,
11701170
11711171 if (disp_reg == noreg) {
11721172 assert (Assembler::is_simm16 (disp_value), " should have set this up" );
1173- offset = load (src, disp_value, to_reg, type, wide, unaligned );
1173+ offset = load (src, disp_value, to_reg, type, wide);
11741174 } else {
11751175 offset = load (src, disp_reg, to_reg, type, wide);
11761176 }
@@ -1192,8 +1192,7 @@ void LIR_Assembler::stack2reg(LIR_Opr src, LIR_Opr dest, BasicType type) {
11921192 addr = frame_map ()->address_for_double_slot (src->double_stack_ix ());
11931193 }
11941194
1195- bool unaligned = addr.disp () % 8 != 0 ;
1196- load (addr.base (), addr.disp (), dest, dest->type (), true /* wide*/ , unaligned);
1195+ load (addr.base (), addr.disp (), dest, dest->type (), true /* wide*/ );
11971196}
11981197
11991198
@@ -1204,8 +1203,8 @@ void LIR_Assembler::reg2stack(LIR_Opr from_reg, LIR_Opr dest, BasicType type, bo
12041203 } else if (dest->is_double_word ()) {
12051204 addr = frame_map ()->address_for_slot (dest->double_stack_ix ());
12061205 }
1207- bool unaligned = addr. disp () % 8 != 0 ;
1208- store (from_reg, addr.base (), addr.disp (), from_reg->type (), true /* wide*/ , unaligned );
1206+
1207+ store (from_reg, addr.base (), addr.disp (), from_reg->type (), true /* wide*/ );
12091208}
12101209
12111210
@@ -1241,7 +1240,7 @@ void LIR_Assembler::reg2reg(LIR_Opr from_reg, LIR_Opr to_reg) {
12411240
12421241void LIR_Assembler::reg2mem (LIR_Opr from_reg, LIR_Opr dest, BasicType type,
12431242 LIR_PatchCode patch_code, CodeEmitInfo* info, bool pop_fpu_stack,
1244- bool wide, bool unaligned ) {
1243+ bool wide) {
12451244 assert (type != T_METADATA, " store of metadata ptr not supported" );
12461245 LIR_Address* addr = dest->as_address_ptr ();
12471246
@@ -1298,7 +1297,7 @@ void LIR_Assembler::reg2mem(LIR_Opr from_reg, LIR_Opr dest, BasicType type,
12981297
12991298 if (disp_reg == noreg) {
13001299 assert (Assembler::is_simm16 (disp_value), " should have set this up" );
1301- offset = store (from_reg, src, disp_value, type, wide, unaligned );
1300+ offset = store (from_reg, src, disp_value, type, wide);
13021301 } else {
13031302 offset = store (from_reg, src, disp_reg, type, wide);
13041303 }
0 commit comments