Skip to content

Commit

Permalink
Short label jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Feb 21, 2024
1 parent 3c83aa1 commit a28bb54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/hotspot/cpu/riscv/macroAssembler_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,12 @@ void MacroAssembler::jump_codecache(const address dest, Register temp) {

void MacroAssembler::jump_label(Label &lab, Register temp) {
assert_different_registers(x0, temp);
wrap_label(x0, lab, temp, &MacroAssembler::jump_link_wrap_label);
if (lab.is_bound()) {
MacroAssembler::jump_codecache(target(lab), temp);
} else {
lab.add_patch_at(code(), locator());
MacroAssembler::jump_codecache(pc(), temp);
}
}

void MacroAssembler::wrap_label(Register Rt, Label &L, Register tmp, load_insn_by_temp insn) {
Expand Down

0 comments on commit a28bb54

Please sign in to comment.