lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/lib/jit_arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jit_arm.c')
-rw-r--r--lib/jit_arm.c 6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/jit_arm.c b/lib/jit_arm.c
index e0e680f..6edac94 100644
--- a/lib/jit_arm.c
+++ b/lib/jit_arm.c
@@ -1555,7 +1555,8 @@ _emit_code(jit_state_t *_jit)
if (temp->flag & jit_flag_patch)
jmpi(temp->u.w);
else {
- word = jmpi_p(_jit->pc.w);
+ word = jmpi_p(_jit->pc.w,
+ !!(node->flag & jit_flag_node));
patch(word, node);
}
}
@@ -2002,7 +2003,8 @@ _patch(jit_state_t *_jit, jit_word_t instr, jit_node_t *node)
}
else {
flag = node->u.n->flag;
- if (node->code == jit_code_calli)
+ if (node->code == jit_code_calli ||
+ (node->code == jit_code_jmpi && !(node->flag & jit_flag_node)))
kind = arm_patch_word;
else
kind = arm_patch_jump;
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月16日 08:50:48 +0000

AltStyle によって変換されたページ (->オリジナル) /