ruby-changes:51119
From: k0kubun <ko1@a...>
Date: Thu, 3 May 2018 01:04:32 +0900 (JST)
Subject: [ruby-changes:51119] k0kubun:r63326 (trunk): test_jit.rb: test opt_aref_with again
k0kubun 2018-05-03 01:04:26 +0900 (Thu, 03 May 2018) New Revision: 63326 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63326 Log: test_jit.rb: test opt_aref_with again Modified files: trunk/test/ruby/test_jit.rb Index: test/ruby/test_jit.rb =================================================================== --- test/ruby/test_jit.rb (revision 63325) +++ test/ruby/test_jit.rb (revision 63326) @@ -25,7 +25,6 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L25 :setlocal_WC_1, :reput, :tracecoverage, - :opt_aref_with, ] def self.untested_insns @@ -457,6 +456,10 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L456 end; end + def test_compile_insn_opt_aref_with + assert_compile_once("{ '1' => 2 }['1']", result_inspect: '2', insns: %i[opt_aref_with]) + end + def test_compile_insn_opt_aset assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '5', insns: %i[opt_aset opt_aset_with]) begin; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/