guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/04: Align stack before entering JIT code


From: Andy Wingo
Subject: [Guile-commits] 01/04: Align stack before entering JIT code
Date: Sun, 28 Apr 2019 07:56:59 -0400 (EDT)

wingo pushed a commit to branch lightening
in repository guile.

commit 26bd81716be8442b483ac3ddcf348aaf06dd0dec
Author: Andy Wingo <address@hidden>
Date:   Fri Apr 26 10:05:18 2019 +0200

    Align stack before entering JIT code
    
    * libguile/jit.c (emit_entry_trampoline): Ensure stack is aligned when
      going into JIT code.
---
 libguile/jit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libguile/jit.c b/libguile/jit.c
index f10e267..726f75b 100644
--- a/libguile/jit.c
+++ b/libguile/jit.c
@@ -1293,6 +1293,8 @@ emit_entry_trampoline (scm_jit_state *j)
   /* Load FP, set during call sequences.  */
   emit_reload_fp (j);
 
+  size_t alignment = jit_align_stack (j->jit, 0);
+
   /* Jump to the mcode!  */
   jit_jmpr (j->jit, T0);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]