aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ir.h')
-rw-r--r--src/lj_ir.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h
index 03377ec1..8b2fe638 100644
--- a/src/lj_ir.h
+++ b/src/lj_ir.h
@@ -557,8 +557,7 @@ typedef union IRIns {
557 TValue tv; /* TValue constant (overlaps entire slot). */ 557 TValue tv; /* TValue constant (overlaps entire slot). */
558} IRIns; 558} IRIns;
559 559
560/* TODO_GC64: major changes required. */ 560#define ir_kgc(ir) check_exp((ir)->o == IR_KGC, gcref((ir)[LJ_GC64].gcr))
561#define ir_kgc(ir) check_exp((ir)->o == IR_KGC, gcref((ir)->gcr))
562#define ir_kstr(ir) (gco2str(ir_kgc((ir)))) 561#define ir_kstr(ir) (gco2str(ir_kgc((ir))))
563#define ir_ktab(ir) (gco2tab(ir_kgc((ir)))) 562#define ir_ktab(ir) (gco2tab(ir_kgc((ir))))
564#define ir_kfunc(ir) (gco2func(ir_kgc((ir)))) 563#define ir_kfunc(ir) (gco2func(ir_kgc((ir))))
@@ -568,7 +567,8 @@ typedef union IRIns {
568#define ir_k64(ir) \ 567#define ir_k64(ir) \
569 check_exp((ir)->o == IR_KNUM || (ir)->o == IR_KINT64, &(ir)[1].tv) 568 check_exp((ir)->o == IR_KNUM || (ir)->o == IR_KINT64, &(ir)[1].tv)
570#define ir_kptr(ir) \ 569#define ir_kptr(ir) \
571 check_exp((ir)->o == IR_KPTR || (ir)->o == IR_KKPTR, mref((ir)->ptr, void)) 570 check_exp((ir)->o == IR_KPTR || (ir)->o == IR_KKPTR, \
571 mref((ir)[LJ_GC64].ptr, void))
572 572
573/* A store or any other op with a non-weak guard has a side-effect. */ 573/* A store or any other op with a non-weak guard has a side-effect. */
574static LJ_AINLINE int ir_sideeff(IRIns *ir) 574static LJ_AINLINE int ir_sideeff(IRIns *ir)