aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_jit.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 66360731eb..cd7ac23697 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -11,6 +11,7 @@ class TestJIT < Test::Unit::TestCase
IGNORABLE_PATTERNS = [
/\AJIT recompile: .+\n\z/,
+ /\AJIT inline: .+\n\z/,
/\ASuccessful MJIT finish\n\z/,
]
@@ -841,6 +842,19 @@ class TestJIT < Test::Unit::TestCase
end;
end
+ def test_block_handler_with_frame_omitted_inlining
+ assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "70.0\n70.0\n70.0\n", success_count: 1, min_calls: 2)
+ begin;
+ def multiply(a, b)
+ a *= b
+ end
+
+ 3.times do
+ p multiply(7.0, 10.0)
+ end
+ end;
+ end
+
def test_program_counter_with_regexpmatch
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "aa", success_count: 1)
begin;