diff options
Diffstat (limited to 'src/lj_obj.h')
-rw-r--r-- | src/lj_obj.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index e85cf703..3442dc0c 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -309,12 +309,15 @@ typedef struct GCproto { | |||
309 | MRef varinfo; /* Names and compressed extents of local variables. */ | 309 | MRef varinfo; /* Names and compressed extents of local variables. */ |
310 | } GCproto; | 310 | } GCproto; |
311 | 311 | ||
312 | #define PROTO_IS_VARARG 0x01 | 312 | /* Flags for prototype. */ |
313 | #define PROTO_HAS_FNEW 0x02 | 313 | #define PROTO_VARARG 0x01 /* Vararg function. */ |
314 | #define PROTO_HAS_RETURN 0x04 | 314 | #define PROTO_CHILD 0x02 /* Has child prototypes. */ |
315 | #define PROTO_FIXUP_RETURN 0x08 | 315 | #define PROTO_NOJIT 0x04 /* JIT disabled for this function. */ |
316 | #define PROTO_NO_JIT 0x10 | 316 | #define PROTO_ILOOP 0x08 /* Patched bytecode with ILOOP etc. */ |
317 | #define PROTO_HAS_ILOOP 0x20 | 317 | #define PROTO_FFI 0x10 /* Uses BC_KCDATA for FFI datatypes. */ |
318 | /* Only used during parsing. */ | ||
319 | #define PROTO_HAS_RETURN 0x20 /* Already emitted a return. */ | ||
320 | #define PROTO_FIXUP_RETURN 0x40 /* Need to fixup emitted returns. */ | ||
318 | 321 | ||
319 | #define proto_kgc(pt, idx) \ | 322 | #define proto_kgc(pt, idx) \ |
320 | check_exp((uintptr_t)(intptr_t)(idx) >= (uintptr_t)-(intptr_t)(pt)->sizekgc, \ | 323 | check_exp((uintptr_t)(intptr_t)(idx) >= (uintptr_t)-(intptr_t)(pt)->sizekgc, \ |