summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-05 15:56:48 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-05 15:56:48 +0000
commit7a0a58544452e6e01cf2ec87f83e7080d229dad5 (patch)
treea372d902b636cbcbc09c12bdbbbc5fa4f56e90e8 /test
parent96f1c663779b434640c9c60f613566753ad17beb (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_jit.rb18
1 files changed, 18 insertions, 0 deletions
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