aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ir.h
diff options
context:
space:
mode:
authorMike Pall <mike>2010-01-27 03:50:29 +0100
committerMike Pall <mike>2010-01-27 03:50:29 +0100
commit3aeb89226202439c0be07830ae6e71007a7b5dd3 (patch)
tree77789041551fc1b5bcb2eb69c85e9b221a49d578 /src/lj_ir.h
parentd216cdb2b9eb41879cdfc327486d805cc260d8fa (diff)
downloadluajit-3aeb89226202439c0be07830ae6e71007a7b5dd3.tar.gz
luajit-3aeb89226202439c0be07830ae6e71007a7b5dd3.tar.bz2
luajit-3aeb89226202439c0be07830ae6e71007a7b5dd3.zip
Eliminate IR_FRAME. Replace with KGC and TRef/SnapEntry flags.
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