diff options
author | Jimmy Miller <jimmy.miller@shopify.com> | 2022-09-19 02:09:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 15:09:38 +0900 |
commit | e75d96368577276cbebadb56a0fb286f66afdf3f (patch) | |
tree | ebac1b8ae754c453787875006b4dd4b87b32d279 /yjit | |
parent | 12e5e5b5739657284789a966e1dcb205545ad0ce (diff) |
Only exit if ruby2_keywords and splat together (#6395)
Before this change railsbench spent less time in yjit than before splat. This brings it back to parity.
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 71831a96ed..ef7c3386a2 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -4370,7 +4370,7 @@ fn gen_send_iseq( // We are just going to not compile these. // https://www.rubydoc.info/stdlib/core/Proc:ruby2_keywords if unsafe { - get_iseq_flags_ruby2_keywords(jit.iseq) + get_iseq_flags_ruby2_keywords(jit.iseq) && flags & VM_CALL_ARGS_SPLAT != 0 } { gen_counter_incr!(asm, send_iseq_ruby2_keywords); return CantCompile; |