summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-11-18 09:31:36 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2019-11-18 09:31:36 -0800
commit0be0d90ab0566df186ad7dc3b9e5ec9e06e296a3 (patch)
treebeca396ad21f1a23cac92c6536bf5be024e9545c /test
parentfea24bbfdbe17da1038355fe7e0f7063f8c26c87 (diff)
pack is not using invokebuiltin anymore
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_jit.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 3ef60df7a1..533ebbd25e 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -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)