[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 12/17: Add out-of-line slow path for abort
From: |
Andy Wingo |
Subject: |
[Guile-commits] 12/17: Add out-of-line slow path for abort |
Date: |
Wed, 11 Dec 2019 03:47:51 -0500 (EST) |
wingo pushed a commit to branch master
in repository guile.
commit 45b936a8e3e6244849c43a81319b6e82b82c5dc4
Author: Andy Wingo <address@hidden>
Date: Tue Dec 10 22:07:26 2019 +0100
Add out-of-line slow path for abort
* libguile/jit.c (compile_abort, compile_abort_slow): Move interpreter
fallback to slow path.
---
libguile/jit.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/libguile/jit.c b/libguile/jit.c
index 2b66e82..b9deaae 100644
--- a/libguile/jit.c
+++ b/libguile/jit.c
@@ -1828,23 +1828,18 @@ compile_capture_continuation_slow (scm_jit_state *j,
uint32_t dst)
static void
compile_abort (scm_jit_state *j)
{
- jit_reloc_t k, interp;
-
jit_movi (j->jit, T0, (intptr_t) (j->ip + 1));
emit_store_ip (j, T0);
- k = jit_mov_addr (j->jit, T0);
+ jit_reloc_t k = jit_mov_addr (j->jit, T0);
emit_call_2 (j, scm_vm_intrinsics.abort_to_prompt, thread_operand (),
jit_operand_gpr (JIT_OPERAND_ABI_POINTER, T0));
jit_retval (j->jit, T1_PRESERVED);
- interp = jit_beqi (j->jit, T1_PRESERVED, 0);
+ add_slow_path_patch(j, jit_beqi (j->jit, T1_PRESERVED, 0));
emit_reload_sp (j);
emit_reload_fp (j);
jit_jmpr (j->jit, T1_PRESERVED);
- jit_patch_here (j->jit, interp);
- emit_exit (j);
-
jit_patch_here (j->jit, k);
j->frame_size_min = 0;
@@ -1853,6 +1848,7 @@ compile_abort (scm_jit_state *j)
static void
compile_abort_slow (scm_jit_state *j)
{
+ emit_exit (j);
}
static void
- [Guile-commits] 04/17: Move handle-interrupts slow path out of line, (continued)
- [Guile-commits] 04/17: Move handle-interrupts slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 10/17: Add subr-call out-of-line slow path, Andy Wingo, 2019/12/11
- [Guile-commits] 09/17: Move alloc-frame slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 13/17: Move assert-nargs-le slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 14/17: Move allocate-words/immediate slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 05/17: Move receive slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 07/17: Move assert-nargs-ee slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 06/17: Move receive-values slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 08/17: Move assert-nargs-ge slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 11/17: Add out-of-line slow path for compose-continuation, Andy Wingo, 2019/12/11
- [Guile-commits] 12/17: Add out-of-line slow path for abort,
Andy Wingo <=
- [Guile-commits] 15/17: Move allocate-pointerless-words/immediate slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 01/17: Add infrastructure for out-of-line JIT compilation of slow paths, Andy Wingo, 2019/12/11
- [Guile-commits] 17/17: Move less? slow path out of line, Andy Wingo, 2019/12/11
- [Guile-commits] 16/17: Add fixnum fast-path for =, Andy Wingo, 2019/12/11