Skip to content

Commit f1a197c

Browse files
committed
x64: guard primitive upvalue inline helpers
1 parent c84805d commit f1a197c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lj_asm_x86.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,6 +2635,7 @@ static int asm_bufput_const_tg_inline(ASMState *as, IRIns *ir, GCstr *s)
26352635
}
26362636
#endif
26372637

2638+
#if LJ_HAS_X64_MT_JIT_HELPERS
26382639
static void asm_ustore_forjit(ASMState *as, IRIns *ir)
26392640
{
26402641
const CCallInfo *ci = &lj_ir_callinfo[IRCALL_lj_func_storeuv_forjit];
@@ -2700,6 +2701,7 @@ static int asm_ustore_cell_needs_helper(ASMState *as, IRIns *ir)
27002701
return ir->o == IR_USTORE && IR(ir->op1)->o == IR_UREFC &&
27012702
!irt_isnum(ir->t) && !asm_ustore_cell_can_inline_tvalue(as, ir);
27022703
}
2704+
#endif
27032705

27042706
static void asm_ahustore(ASMState *as, IRIns *ir)
27052707
{

0 commit comments

Comments
 (0)