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 20
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/jit_arm.c b/lib/jit_arm.c
index 62d8e8a..bdafcdd 100644
--- a/lib/jit_arm.c
+++ b/lib/jit_arm.c
@@ -1385,15 +1385,19 @@ _emit_code(jit_state_t *_jit)
flush_consts();
break;
case jit_code_jmpi:
- temp = node->u.n;
- assert(temp->code == jit_code_label ||
- temp->code == jit_code_epilog);
- if (temp->flag & jit_flag_patch)
- jmpi(temp->u.w);
- else {
- word = jmpi_p(_jit->pc.w);
- patch(word, node);
+ if (node->flag & jit_flag_node) {
+ temp = node->u.n;
+ assert(temp->code == jit_code_label ||
+ temp->code == jit_code_epilog);
+ if (temp->flag & jit_flag_patch)
+ jmpi(temp->u.w);
+ else {
+ word = jmpi_p(_jit->pc.w);
+ patch(word, node);
+ }
}
+ else
+ jmpi(node->u.w);
flush_consts();
break;
case jit_code_callr:
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月21日 01:32:57 +0000

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