summaryrefslogtreecommitdiff
path: root/yjit_utils.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-07-13 16:04:56 -0700
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:37 -0400
commit0fdcdd267f7c3a482467f60e00049b88da1ae88c (patch)
tree20925cc78e0562d6c5564b37764ae02efd9c5fc6 /yjit_utils.c
parentd0174d99c6fcbeae2d5cdaa34908b9ac117bb9c3 (diff)
fix alignment
Diffstat (limited to 'yjit_utils.c')
-rw-r--r--yjit_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/yjit_utils.c b/yjit_utils.c
index 02e5dbb3b0..4e764f0aea 100644
--- a/yjit_utils.c
+++ b/yjit_utils.c
@@ -95,9 +95,13 @@ void print_str(codeblock_t* cb, const char* str)
cb_write_byte(cb, (uint8_t)str[i]);
cb_write_byte(cb, 0);
+ push(cb, RSP); // Alignment
+
// Call the print function
mov(cb, RAX, const_ptr_opnd((void*)&print_str_cfun));
call(cb, RAX);
+ pop(cb, RSP); // Alignment
+
pop_regs(cb);
}