mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
19 lines
391 B
Ruby
19 lines
391 B
Ruby
module RubyVM::MJIT
|
|
class InsnCompiler
|
|
def compile_putnil(_asm)
|
|
# TODO
|
|
KeepCompiling
|
|
end
|
|
|
|
def compile_leave(asm)
|
|
# pop the current frame (ec->cfp++)
|
|
asm.add(:rsi, C.rb_control_frame_t.size)
|
|
asm.mov([:rdi, C.rb_execution_context_t.offsetof(:cfp)], :rsi)
|
|
|
|
# return a value
|
|
asm.mov(:rax, 7)
|
|
asm.ret
|
|
EndBlock
|
|
end
|
|
end
|
|
end
|