@@ -527,7 +527,7 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
527
527
bnez (t1, safepoint);
528
528
}
529
529
if (table == Interpreter::dispatch_table (state)) {
530
- li (t1, Interpreter::distance_from_dispatch_table (state));
530
+ mv (t1, Interpreter::distance_from_dispatch_table (state));
531
531
add (t1, Rs, t1);
532
532
shadd (t1, t1, xdispatch, t1, 3 );
533
533
} else {
@@ -835,7 +835,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg)
835
835
// least significant 3 bits clear.
836
836
// NOTE: the oopMark is in swap_reg x10 as the result of cmpxchg
837
837
sub (swap_reg, swap_reg, sp);
838
- li (t0, (int64_t )(7 - os::vm_page_size ()));
838
+ mv (t0, (int64_t )(7 - os::vm_page_size ()));
839
839
andr (swap_reg, swap_reg, t0);
840
840
841
841
// Save the test result, for recursive case, the result is zero
@@ -1677,7 +1677,7 @@ void InterpreterMacroAssembler::profile_obj_type(Register obj, const Address& md
1677
1677
1678
1678
ld (t0, mdo_addr);
1679
1679
beqz (t0, none);
1680
- li (tmp, (u1)TypeEntries::null_seen);
1680
+ mv (tmp, (u1)TypeEntries::null_seen);
1681
1681
beq (t0, tmp, none);
1682
1682
// There is a chance that the checks above (re-reading profiling
1683
1683
// data from memory) fail if another thread has just set the
@@ -1712,10 +1712,10 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1712
1712
1713
1713
lbu (t0, Address (mdp, in_bytes (DataLayout::tag_offset ()) - off_to_start));
1714
1714
if (is_virtual) {
1715
- li (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1715
+ mv (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1716
1716
bne (t0, tmp, profile_continue);
1717
1717
} else {
1718
- li (tmp, (u1)DataLayout::call_type_data_tag);
1718
+ mv (tmp, (u1)DataLayout::call_type_data_tag);
1719
1719
bne (t0, tmp, profile_continue);
1720
1720
}
1721
1721
@@ -1745,15 +1745,15 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1745
1745
mv (index , zr); // index < TypeProfileArgsLimit
1746
1746
bind (loop);
1747
1747
bgtz (index , profileReturnType);
1748
- li (t0, (int )MethodData::profile_return ());
1748
+ mv (t0, (int )MethodData::profile_return ());
1749
1749
beqz (t0, profileArgument); // (index > 0 || MethodData::profile_return()) == false
1750
1750
bind (profileReturnType);
1751
1751
// If return value type is profiled we may have no argument to profile
1752
1752
ld (tmp, Address (mdp, in_bytes (TypeEntriesAtCall::cell_count_offset ())));
1753
1753
mv (t1, - TypeStackSlotEntries::per_arg_count ());
1754
1754
mul (t1, index , t1);
1755
1755
add (tmp, tmp, t1);
1756
- li (t1, TypeStackSlotEntries::per_arg_count ());
1756
+ mv (t1, TypeStackSlotEntries::per_arg_count ());
1757
1757
add (t0, mdp, off_to_args);
1758
1758
blt (tmp, t1, done);
1759
1759
@@ -1764,8 +1764,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1764
1764
// stack offset o (zero based) from the start of the argument
1765
1765
// list, for n arguments translates into offset n - o - 1 from
1766
1766
// the end of the argument list
1767
- li (t0, stack_slot_offset0);
1768
- li (t1, slot_step);
1767
+ mv (t0, stack_slot_offset0);
1768
+ mv (t1, slot_step);
1769
1769
mul (t1, index , t1);
1770
1770
add (t0, t0, t1);
1771
1771
add (t0, mdp, t0);
@@ -1775,8 +1775,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1775
1775
Address arg_addr = argument_address (tmp);
1776
1776
ld (tmp, arg_addr);
1777
1777
1778
- li (t0, argument_type_offset0);
1779
- li (t1, type_step);
1778
+ mv (t0, argument_type_offset0);
1779
+ mv (t1, type_step);
1780
1780
mul (t1, index , t1);
1781
1781
add (t0, t0, t1);
1782
1782
add (mdo_addr, mdp, t0);
@@ -1788,7 +1788,7 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1788
1788
1789
1789
// increment index by 1
1790
1790
addi (index , index , 1 );
1791
- li (t1, TypeProfileArgsLimit);
1791
+ mv (t1, TypeProfileArgsLimit);
1792
1792
blt (index , t1, loop);
1793
1793
bind (loopEnd);
1794
1794
@@ -1843,13 +1843,13 @@ void InterpreterMacroAssembler::profile_return_type(Register mdp, Register ret,
1843
1843
// length
1844
1844
Label do_profile;
1845
1845
lbu (t0, Address (xbcp, 0 ));
1846
- li (tmp, (u1)Bytecodes::_invokedynamic);
1846
+ mv (tmp, (u1)Bytecodes::_invokedynamic);
1847
1847
beq (t0, tmp, do_profile);
1848
- li (tmp, (u1)Bytecodes::_invokehandle);
1848
+ mv (tmp, (u1)Bytecodes::_invokehandle);
1849
1849
beq (t0, tmp, do_profile);
1850
1850
get_method (tmp);
1851
1851
lhu (t0, Address (tmp, Method::intrinsic_id_offset_in_bytes ()));
1852
- li (t1, static_cast <int >(vmIntrinsics::_compiledLambdaForm));
1852
+ mv (t1, static_cast <int >(vmIntrinsics::_compiledLambdaForm));
1853
1853
bne (t0, t1, profile_continue);
1854
1854
bind (do_profile);
1855
1855
}
0 commit comments