mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
pack is not using invokebuiltin anymore
This commit is contained in:
parent
fea24bbfdb
commit
0be0d90ab0
1 changed files with 3 additions and 6 deletions
|
@ -21,6 +21,9 @@ class TestJIT < Test::Unit::TestCase
|
|||
:defineclass,
|
||||
:opt_call_c_function,
|
||||
|
||||
# to be tested
|
||||
:invokebuiltin,
|
||||
|
||||
# never used
|
||||
:opt_invokebuiltin_delegate,
|
||||
].each do |insn|
|
||||
|
@ -596,12 +599,6 @@ class TestJIT < Test::Unit::TestCase
|
|||
skip "support this in opt_call_c_function (low priority)"
|
||||
end
|
||||
|
||||
def test_compile_insn_invokebuiltin
|
||||
insns = collect_insns(RubyVM::InstructionSequence.of([0].method(:pack)).to_a)
|
||||
mark_tested_insn(:invokebuiltin, used_insns: insns)
|
||||
assert_eval_with_jit('print [0].pack("c")', stdout: "\x00", success_count: 1)
|
||||
end
|
||||
|
||||
def test_compile_insn_opt_invokebuiltin_delegate_leave
|
||||
insns = collect_insns(RubyVM::InstructionSequence.of("\x00".method(:unpack)).to_a)
|
||||
mark_tested_insn(:opt_invokebuiltin_delegate_leave, used_insns: insns)
|
||||
|
|
Loading…
Add table
Reference in a new issue