Make the IR immovable after assembly.

This allows embedding pointers to IR constants in the machine code.
Contributed by Peter Cawley.
This commit is contained in:
Mike Pall
2016-05-22 23:25:28 +02:00
parent 513587656a
commit a657fa0186
4 changed files with 97 additions and 33 deletions

View File

@@ -362,6 +362,7 @@ typedef struct FoldState {
/* JIT compiler state. */
typedef struct jit_State {
GCtrace cur; /* Current trace. */
GCtrace *curfinal; /* Final address of current trace (set during asm). */
lua_State *L; /* Current Lua state. */
const BCIns *pc; /* Current PC. */