Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix JIT code on Windows
The area just below (higher addresses) the stack pointer is reserved for the callee to store registers, so we cannot use it to pass an MVMArgs struct. Need to go a little lower and tap into the actual argument space (which is available, since we do not need to pass any stack args). Simplify the code for POSIX while we're at it. emit_stack_arg emits a single line of assembly. Avoid mixing C, assembly and DynASM too much by just writing that line directly.
- Loading branch information
Showing
1 changed file
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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