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:
parent
f15ce49364
commit
db8e95587e
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,6 @@ class TestJIT < Test::Unit::TestCase
|
||||||
:setlocal_WC_1,
|
:setlocal_WC_1,
|
||||||
:reput,
|
:reput,
|
||||||
:tracecoverage,
|
:tracecoverage,
|
||||||
:opt_aref_with,
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def self.untested_insns
|
def self.untested_insns
|
||||||
|
@ -457,6 +456,10 @@ class TestJIT < Test::Unit::TestCase
|
||||||
end;
|
end;
|
||||||
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
|
def test_compile_insn_opt_aset
|
||||||
assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '5', insns: %i[opt_aset opt_aset_with])
|
assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '5', insns: %i[opt_aset opt_aset_with])
|
||||||
begin;
|
begin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue