Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Oct 11, 2023
1 parent 8a8b23c commit ae291be
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions yjit/src/backend/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,17 @@ impl Assembler
cb.write_byte(0);
},

Insn::FrameSetup => {},
Insn::FrameTeardown => {},
// Set up RBP to work with frame pointer unwinding
// (e.g. with Linux `perf record --call-graph fp`)
Insn::FrameSetup => {
push(cb, RBP);
mov(cb, RBP, RSP);
push(cb, RBP);
}
Insn::FrameTeardown => {
pop(cb, RBP);
pop(cb, RBP);
}

Insn::Add { left, right, .. } => {
let opnd1 = emit_64bit_immediate(cb, right);
Expand Down

0 comments on commit ae291be

Please sign in to comment.