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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h
index 672aca4a..34c14519 100644
--- a/src/lj_ir.h
+++ b/src/lj_ir.h
@@ -34,7 +34,7 @@
34 _(NE, GC, ref, ref) \ 34 _(NE, GC, ref, ref) \
35 \ 35 \
36 _(ABC, G , ref, ref) \ 36 _(ABC, G , ref, ref) \
37 _(FRAME, G , ref, ref) \ 37 _(UNUSED, G , ref, ref) /* Placeholder. */ \
38 \ 38 \
39 _(LT, G , ref, ref) \ 39 _(LT, G , ref, ref) \
40 _(GE, G , ref, ref) \ 40 _(GE, G , ref, ref) \
@@ -511,11 +511,11 @@ typedef union IRIns {
511 MRef ptr; /* Pointer constant (overlaps op12). */ 511 MRef ptr; /* Pointer constant (overlaps op12). */
512} IRIns; 512} IRIns;
513 513
514#define ir_kgc(ir) (gcref((ir)->gcr)) 514#define ir_kgc(ir) check_exp((ir)->o == IR_KGC, gcref((ir)->gcr))
515#define ir_kstr(ir) (gco2str(ir_kgc((ir)))) 515#define ir_kstr(ir) (gco2str(ir_kgc((ir))))
516#define ir_ktab(ir) (gco2tab(ir_kgc((ir)))) 516#define ir_ktab(ir) (gco2tab(ir_kgc((ir))))
517#define ir_kfunc(ir) (gco2func(ir_kgc((ir)))) 517#define ir_kfunc(ir) (gco2func(ir_kgc((ir))))
518#define ir_knum(ir) (mref((ir)->ptr, cTValue)) 518#define ir_knum(ir) check_exp((ir)->o == IR_KNUM, mref((ir)->ptr, cTValue))
519#define ir_kptr(ir) (mref((ir)->ptr, void)) 519#define ir_kptr(ir) check_exp((ir)->o == IR_KPTR, mref((ir)->ptr, void))
520 520
521#endif 521#endif