Decouple SLOAD type and optional conversion.
This commit is contained in:
11
src/lj_ir.h
11
src/lj_ir.h
@@ -190,11 +190,12 @@ IRFLDEF(FLENUM)
|
||||
} IRFieldID;
|
||||
|
||||
/* SLOAD mode bits, stored in op2. */
|
||||
#define IRSLOAD_INHERIT 0x01 /* Inherited by exits/side traces. */
|
||||
#define IRSLOAD_READONLY 0x02 /* Read-only, omit slot store. */
|
||||
#define IRSLOAD_PARENT 0x04 /* Coalesce with parent trace. */
|
||||
#define IRSLOAD_TYPECHECK 0x08 /* Needs type check. */
|
||||
#define IRSLOAD_FRAME 0x10 /* Load hiword of frame. */
|
||||
#define IRSLOAD_PARENT 0x01 /* Coalesce with parent trace. */
|
||||
#define IRSLOAD_FRAME 0x02 /* Load hiword of frame. */
|
||||
#define IRSLOAD_TYPECHECK 0x04 /* Needs type check. */
|
||||
#define IRSLOAD_CONVERT 0x08 /* Number to integer conversion. */
|
||||
#define IRSLOAD_READONLY 0x10 /* Read-only, omit slot store. */
|
||||
#define IRSLOAD_INHERIT 0x20 /* Inherited by exits/side traces. */
|
||||
|
||||
/* XLOAD mode, stored in op2. */
|
||||
#define IRXLOAD_READONLY 1 /* Load from read-only data. */
|
||||
|
||||
Reference in New Issue
Block a user