aboutsummaryrefslogtreecommitdiff
path: root/src/lj_bcdump.h
diff options
context:
space:
mode:
authorMike Pall <mike>2024-01-22 19:06:36 +0100
committerMike Pall <mike>2024-01-22 19:06:36 +0100
commit4b90f6c4d7420139c135435e1580acb52ea18436 (patch)
tree1c3543b6baa4f8b30a33e8a624b60edc6feb0206 /src/lj_bcdump.h
parentc525bcb9024510cad9e170e12b6209aedb330f83 (diff)
downloadluajit-4b90f6c4d7420139c135435e1580acb52ea18436.tar.gz
luajit-4b90f6c4d7420139c135435e1580acb52ea18436.tar.bz2
luajit-4b90f6c4d7420139c135435e1580acb52ea18436.zip
Add cross-32/64 bit and deterministic bytecode generation.
Contributed by Peter Cawley. #993 #1008
Diffstat (limited to 'src/lj_bcdump.h')
-rw-r--r--src/lj_bcdump.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_bcdump.h b/src/lj_bcdump.h
index 6ba71e25..3e56e39c 100644
--- a/src/lj_bcdump.h
+++ b/src/lj_bcdump.h
@@ -46,6 +46,8 @@
46 46
47#define BCDUMP_F_KNOWN (BCDUMP_F_FR2*2-1) 47#define BCDUMP_F_KNOWN (BCDUMP_F_FR2*2-1)
48 48
49#define BCDUMP_F_DETERMINISTIC 0x80000000
50
49/* Type codes for the GC constants of a prototype. Plus length for strings. */ 51/* Type codes for the GC constants of a prototype. Plus length for strings. */
50enum { 52enum {
51 BCDUMP_KGC_CHILD, BCDUMP_KGC_TAB, BCDUMP_KGC_I64, BCDUMP_KGC_U64, 53 BCDUMP_KGC_CHILD, BCDUMP_KGC_TAB, BCDUMP_KGC_I64, BCDUMP_KGC_U64,
@@ -61,7 +63,7 @@ enum {
61/* -- Bytecode reader/writer ---------------------------------------------- */ 63/* -- Bytecode reader/writer ---------------------------------------------- */
62 64
63LJ_FUNC int lj_bcwrite(lua_State *L, GCproto *pt, lua_Writer writer, 65LJ_FUNC int lj_bcwrite(lua_State *L, GCproto *pt, lua_Writer writer,
64 void *data, int strip); 66 void *data, uint32_t flags);
65LJ_FUNC GCproto *lj_bcread_proto(LexState *ls); 67LJ_FUNC GCproto *lj_bcread_proto(LexState *ls);
66LJ_FUNC GCproto *lj_bcread(LexState *ls); 68LJ_FUNC GCproto *lj_bcread(LexState *ls);
67 69