mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8294492: RISC-V: Use li instead of patchable movptr at non-patchable callsites
Reviewed-by: fyang
This commit is contained in:
parent
8491fd5c12
commit
1decdcee71
8 changed files with 51 additions and 82 deletions
|
@ -563,10 +563,8 @@ void MacroAssembler::emit_static_call_stub() {
|
|||
void MacroAssembler::call_VM_leaf_base(address entry_point,
|
||||
int number_of_arguments,
|
||||
Label *retaddr) {
|
||||
int32_t offset = 0;
|
||||
push_reg(RegSet::of(t0, xmethod), sp); // push << t0 & xmethod >> to sp
|
||||
movptr(t0, entry_point, offset);
|
||||
jalr(x1, t0, offset);
|
||||
call(entry_point);
|
||||
if (retaddr != NULL) {
|
||||
bind(*retaddr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue