[前][次][番号順一覧][スレッド一覧]

ruby-changes:58832

From: Takashi <ko1@a...>
Date: Tue, 19 Nov 2019 02:32:03 +0900 (JST)
Subject: [ruby-changes:58832] 0be0d90ab0 (master): pack is not using invokebuiltin anymore

https://git.ruby-lang.org/ruby.git/commit/?id=0be0d90ab0

From 0be0d90ab0566df186ad7dc3b9e5ec9e06e296a3 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Mon, 18 Nov 2019 09:31:36 -0800
Subject: pack is not using invokebuiltin anymore


diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 3ef60df..533ebbd 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -21,6 +21,9 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L21
     :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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L599
     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)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]