Differentiate between IR_KPTR and IR_KKPTR.
commit925050fe3ffae269f77757679270432dbad7f010
authorMike Pall <mike>
Tue, 18 Jan 2011 23:40:03 +0000 (19 00:40 +0100)
committerMike Pall <mike>
Tue, 18 Jan 2011 23:40:03 +0000 (19 00:40 +0100)
treeb332535f323ca99d7ee9d5b99c73f15de09ea43b
parent685dfc317270642fbf2a686799ca2b31ea42e0de
Differentiate between IR_KPTR and IR_KKPTR.

IR_KPTR holds a const pointer to possibly non-const content.
IR_KKPTR holds a const pointer to definitely const content.
Note that only content known by the VM to be const qualifies.
Content tagged as const by users (e.g. const char *) doesn't.
src/lj_asm.c
src/lj_ir.c
src/lj_ir.h
src/lj_iropt.h
src/lj_opt_fold.c
src/lj_record.c