diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-07 14:41:03 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-07 14:41:03 +0000 |
commit | 8bf22acb598e248585239648146980b0cfb925fa (patch) | |
tree | 4be4254be800de689a6c53f6856ca5c29b2d016b /test | |
parent | df21e66c2c4e9e3bdbb33c31ac505527616bd4c7 (diff) | |
download | ruby-8bf22acb598e248585239648146980b0cfb925fa.tar.gz |
insns.def: stop pushing unnecessary keys for MJIT
[Bug #14892]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_jit.rb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 625af12f77..359afe48b4 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -685,7 +685,7 @@ class TestJIT < Test::Unit::TestCase end; end - def test_stack_pointer_with_regexpmatch + def test_program_pointer_with_regexpmatch assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "aa", success_count: 1) begin; 2.times do @@ -695,6 +695,24 @@ class TestJIT < Test::Unit::TestCase end; end + def test_pushed_values_with_opt_aset_with + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "{}{}", success_count: 1) + begin; + 2.times do + print(Thread.current["a"] = {}) + end + end; + end + + def test_pushed_values_with_opt_aref_with + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "nil\nnil\n", success_count: 1) + begin; + 2.times do + p(Thread.current["a"]) + end + end; + end + private # The shortest way to test one proc |