diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2023-08-11 14:08:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 14:08:45 -0400 |
commit | b6c66604d81d53fda9f717831eac4547891601ad (patch) | |
tree | 7de7956e23ec0581f2153a65eb2bf542eafe7787 /yjit | |
parent | 43721b1d4a474ff24612a62158b6c1cffc473335 (diff) |
YJIT: increase max chain depth for expandarray (#8205)
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/codegen.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 3af6167045..00342ea617 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -1603,7 +1603,7 @@ fn gen_expandarray( jit, asm, ocb, - OPT_AREF_MAX_CHAIN_DEPTH, + EXPANDARRAY_MAX_CHAIN_DEPTH, Counter::expandarray_chain_max_depth, ); @@ -1615,7 +1615,7 @@ fn gen_expandarray( jit, asm, ocb, - OPT_AREF_MAX_CHAIN_DEPTH, + EXPANDARRAY_MAX_CHAIN_DEPTH, Counter::expandarray_chain_max_depth, ); } @@ -2008,6 +2008,9 @@ pub const SET_IVAR_MAX_DEPTH: i32 = 10; // hashes and arrays pub const OPT_AREF_MAX_CHAIN_DEPTH: i32 = 2; +// expandarray +pub const EXPANDARRAY_MAX_CHAIN_DEPTH: i32 = 4; + // up to 10 different classes pub const SEND_MAX_DEPTH: i32 = 20; |