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

ruby-changes:57480

From: Takashi <ko1@a...>
Date: Mon, 2 Sep 2019 14:33:56 +0900 (JST)
Subject: [ruby-changes:57480] Takashi Kokubun: c69545ae32 (master): Fix opt_regexpmatch1 references

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

From c69545ae32a5ddf928e8992a0d2cf39648c2b555 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Mon, 2 Sep 2019 14:33:29 +0900
Subject: Fix opt_regexpmatch1 references


diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb
index 2b0f258..fe0b01a 100644
--- a/bootstraptest/test_insns.rb
+++ b/bootstraptest/test_insns.rb
@@ -399,8 +399,8 @@ tests = [ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_insns.rb#L399
     ! X.new
   },
 
-  [ 'opt_regexpmatch1',  %q{ /true/ =~ 'true' && $~ }, ],
-  [ 'opt_regexpmatch1', <<-'},', ],       # {
+  [ 'opt_regexpmatch2',  %q{ /true/ =~ 'true' && $~ }, ],
+  [ 'opt_regexpmatch2', <<-'},', ],       # {
     class Regexp; def =~ other; true; end; end
     /true/ =~ 'true'
   },
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 0274f59..453290d 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -591,11 +591,8 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L591
     assert_compile_once('!!true', result_inspect: 'true', insns: %i[opt_not])
   end
 
-  def test_compile_insn_opt_regexpmatch1
-    assert_compile_once("/true/ =~ 'true'", result_inspect: '0', insns: %i[opt_regexpmatch1])
-  end
-
   def test_compile_insn_opt_regexpmatch2
+    assert_compile_once("/true/ =~ 'true'", result_inspect: '0', insns: %i[opt_regexpmatch2])
     assert_compile_once("'true' =~ /true/", result_inspect: '0', insns: %i[opt_regexpmatch2])
   end
 
-- 
cgit v0.10.2


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

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