test: add VM coverage for arena fallback and JIT edge cases#115
Merged
danieljohnmorris merged 1 commit intomainfrom Mar 8, 2026
Merged
test: add VM coverage for arena fallback and JIT edge cases#115danieljohnmorris merged 1 commit intomainfrom
danieljohnmorris merged 1 commit intomainfrom
Conversation
…nd JIT edge cases Add tests covering previously uncovered paths in src/vm/mod.rs and src/vm/jit_cranelift.rs: - Arena-full fallback: OP_RECNEW and OP_RECWITH heap fallback when 64KB bump arena is exhausted (7 tests creating 3000+ records in loops) - Arena record to Value conversion and to_value_with_registry paths - Multi-frame OP_RET: 3-4 level deep call chains returning through multiple stack frames, including record returns across frames - JIT: OP_ROU (round builtin), zero-arg OP_CALL via bytecode injection, record return arena promotion, OP_RECWITH, and foreach/OP_LISTGET
1e3cc8f to
bbaab37
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/vm/mod.rsandsrc/vm/jit_cranelift.rsto_valueandto_value_with_registryon arena-allocated records including nested records (L2328-2350, L2385-2404)call(), OP_RECWITH, and foreach/OP_LISTGET (L730-735, L1037-1039, L1153-1160, L1278-1281)Test plan
cargo test— all 2390 tests pass (0 failures)cargo clippy -- -W clippy::all— no warnings