From 8fa0ee4d404f7cc9ff64f8bafcd53f43aed64914 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 4 Aug 2021 16:17:36 -0700 Subject: Use callee-saved regs for REG_SP, REG_EP, REG_CFP --- yjit_core.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'yjit_core.c') diff --git a/yjit_core.c b/yjit_core.c index 5389f3af5f..519da41230 100644 --- a/yjit_core.c +++ b/yjit_core.c @@ -847,22 +847,12 @@ uint8_t* get_branch_target( // Generate an outlined stub that will call branch_stub_hit() uint8_t* stub_addr = cb_get_ptr(ocb, ocb->write_pos); - // Save the yjit registers - push(ocb, REG_CFP); - push(ocb, REG_EC); - push(ocb, REG_SP); - // Call branch_stub_hit(branch_idx, target_idx, ec) mov(ocb, C_ARG_REGS[2], REG_EC); mov(ocb, C_ARG_REGS[1], imm_opnd(target_idx)); mov(ocb, C_ARG_REGS[0], const_ptr_opnd(branch)); call_ptr(ocb, REG0, (void *)&branch_stub_hit); - // Restore the yjit registers - pop(ocb, REG_SP); - pop(ocb, REG_EC); - pop(ocb, REG_CFP); - // Jump to the address returned by the // branch_stub_hit call jmp_rm(ocb, RAX); -- cgit v1.2.3