зеркало из https://github.com/github/ruby.git
Implement nop
This commit is contained in:
Родитель
3ed7fa76e0
Коммит
0a400f38e8
|
@ -17,9 +17,9 @@ module RubyVM::MJIT
|
||||||
asm.incr_counter(:mjit_insns_count)
|
asm.incr_counter(:mjit_insns_count)
|
||||||
asm.comment("Insn: #{insn.name}")
|
asm.comment("Insn: #{insn.name}")
|
||||||
|
|
||||||
# 13/101
|
# 14/101
|
||||||
case insn.name
|
case insn.name
|
||||||
# nop
|
when :nop then nop(jit, ctx, asm)
|
||||||
# getlocal
|
# getlocal
|
||||||
# setlocal
|
# setlocal
|
||||||
# getblockparam
|
# getblockparam
|
||||||
|
@ -129,7 +129,14 @@ module RubyVM::MJIT
|
||||||
# Insns
|
# Insns
|
||||||
#
|
#
|
||||||
|
|
||||||
# nop
|
# @param jit [RubyVM::MJIT::JITState]
|
||||||
|
# @param ctx [RubyVM::MJIT::Context]
|
||||||
|
# @param asm [RubyVM::MJIT::Assembler]
|
||||||
|
def nop(jit, ctx, asm)
|
||||||
|
# Do nothing
|
||||||
|
KeepCompiling
|
||||||
|
end
|
||||||
|
|
||||||
# getlocal
|
# getlocal
|
||||||
# setlocal
|
# setlocal
|
||||||
# getblockparam
|
# getblockparam
|
||||||
|
|
Загрузка…
Ссылка в новой задаче