diff options
Diffstat (limited to 'lib/mjit/codegen.rb')
-rw-r--r-- | lib/mjit/codegen.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mjit/codegen.rb b/lib/mjit/codegen.rb index 6ebefde860..757e08c1a0 100644 --- a/lib/mjit/codegen.rb +++ b/lib/mjit/codegen.rb @@ -7,7 +7,7 @@ module RubyVM::MJIT # @param ctx [RubyVM::MJIT::Context] # @param asm [RubyVM::MJIT::X86Assembler] def putnil(ctx, asm) - asm.mov([:rbx], Qnil) + asm.mov([SP], Qnil) ctx.stack_size += 1 KeepCompiling end @@ -19,14 +19,14 @@ module RubyVM::MJIT # TODO: Check interrupts # Pop the current frame (ec->cfp++) - asm.add(:rsi, C.rb_control_frame_t.size) # rsi = cfp + 1 - asm.mov([:rdi, C.rb_execution_context_t.offsetof(:cfp)], :rsi) # ec->cfp = rsi + asm.add(CFP, C.rb_control_frame_t.size) # cfp = cfp + 1 + asm.mov([EC, C.rb_execution_context_t.offsetof(:cfp)], CFP) # ec->cfp = cfp # Return a value - asm.mov(:rax, [:rbx]) + asm.mov(:rax, [SP]) # Restore callee-saved registers - asm.pop(:rbx) + asm.pop(SP) asm.ret EndBlock |