summaryrefslogtreecommitdiff
path: root/lib/ruby_vm/mjit/insn_compiler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ruby_vm/mjit/insn_compiler.rb')
-rw-r--r--lib/ruby_vm/mjit/insn_compiler.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ruby_vm/mjit/insn_compiler.rb b/lib/ruby_vm/mjit/insn_compiler.rb
index 4c4c86c5f0..96bab0a225 100644
--- a/lib/ruby_vm/mjit/insn_compiler.rb
+++ b/lib/ruby_vm/mjit/insn_compiler.rb
@@ -1,7 +1,4 @@
module RubyVM::MJIT
- # ec: rdi
- # cfp: rsi
- # sp: rbx
# scratch regs: rax
#
# 4/101
@@ -123,6 +120,8 @@ module RubyVM::MJIT
# Restore callee-saved registers
asm.pop(SP)
+ asm.pop(EC)
+ asm.pop(CFP)
asm.ret
EndBlock