From 7a0a58544452e6e01cf2ec87f83e7080d229dad5 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 5 Jul 2018 15:56:48 +0000 Subject: revert r62655 for r63763 r63655 was tightly coupled to handle_frames and some assumptions seems to have been broken by r63763. To partially resolve Bug#14892, this reverts the optimization for now. I want to make MJIT CI happy first and then I'll probably retry r63655 by partially reverting r63763 for sp changes. The skipped test is not fixed yet. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_jit.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 9bd50fe382..c70bf962c0 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -675,6 +675,24 @@ class TestJIT < Test::Unit::TestCase end; end + def test_stack_pointer_with_assignment + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "nil\nnil\n", success_count: 1) + begin; + 2.times do + a, b = nil + p a + end + end; + end + + def test_stack_pointer_with_regexpmatch + skip + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "nil\nnil\n", success_count: 1) + begin; + 1000.times { break if /a/ =~ "ab" && !$~[0] } + end; + end + private # The shortest way to test one proc -- cgit v1.2.3