summaryrefslogtreecommitdiff
path: root/test/lib/jit_support.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/jit_support.rb')
-rw-r--r--test/lib/jit_support.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
index b3fe3efbcb..2ee1329e31 100644
--- a/test/lib/jit_support.rb
+++ b/test/lib/jit_support.rb
@@ -28,8 +28,11 @@ module JITSupport
end
module_function
- def eval_with_jit(env = nil, script, verbose: 0, min_calls: 5, save_temps: false, timeout: JIT_TIMEOUT)
- args = ['--disable-gems', '--jit-wait', "--jit-verbose=#{verbose}", "--jit-min-calls=#{min_calls}"]
+ def eval_with_jit(env = nil, script, verbose: 0, min_calls: 5, save_temps: false, max_cache: 1000, timeout: JIT_TIMEOUT)
+ args = [
+ '--disable-gems', '--jit-wait', "--jit-verbose=#{verbose}",
+ "--jit-min-calls=#{min_calls}", "--jit-max-cache=#{max_cache}",
+ ]
args << '--jit-save-temps' if save_temps
args << '-e' << script
args.unshift(env) if env