1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_jit.rb: test opt_aref_with again

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-05-02 16:04:26 +00:00
parent f15ce49364
commit db8e95587e

View file

@ -25,7 +25,6 @@ class TestJIT < Test::Unit::TestCase
:setlocal_WC_1,
:reput,
:tracecoverage,
:opt_aref_with,
]
def self.untested_insns
@ -457,6 +456,10 @@ class TestJIT < Test::Unit::TestCase
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;