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_mips.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jit_mips.c')
-rw-r--r--lib/jit_mips.c 20
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/jit_mips.c b/lib/jit_mips.c
index 88f128c..3eec489 100644
--- a/lib/jit_mips.c
+++ b/lib/jit_mips.c
@@ -1343,15 +1343,19 @@ _emit_code(jit_state_t *_jit)
jmpr(rn(node->u.w));
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(_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(_jit->pc.w);
+ patch(word, node);
+ }
}
+ else
+ jmpi(node->u.w);
break;
case jit_code_callr:
callr(rn(node->u.w));
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月21日 05:28:28 +0000

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