diff options
author | Mike Pall <mike> | 2010-12-30 00:42:00 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-30 00:42:00 +0100 |
commit | 158de60b8c5a46b3f00c00ae54ed026ef46487b3 (patch) | |
tree | 9f9f841160cb72364736a2ebc9c058d68dee632d /src/lj_ir.h | |
parent | 8bcc5ed021b9c683d7e254dc9e0937eaa40f6d64 (diff) | |
download | luajit-158de60b8c5a46b3f00c00ae54ed026ef46487b3.tar.gz luajit-158de60b8c5a46b3f00c00ae54ed026ef46487b3.tar.bz2 luajit-158de60b8c5a46b3f00c00ae54ed026ef46487b3.zip |
Refactoring of conversion ops, part 2: cleanup cdata conversions.
Diffstat (limited to 'src/lj_ir.h')
-rw-r--r-- | src/lj_ir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h index 8154949c..75635f93 100644 --- a/src/lj_ir.h +++ b/src/lj_ir.h | |||
@@ -222,6 +222,7 @@ IRFLDEF(FLENUM) | |||
222 | /* CONV mode, stored in op2. Lowest 8 bits is the IRType of the source. */ | 222 | /* CONV mode, stored in op2. Lowest 8 bits is the IRType of the source. */ |
223 | #define IRCONV_TRUNC 0x100 /* Truncate number to integer. */ | 223 | #define IRCONV_TRUNC 0x100 /* Truncate number to integer. */ |
224 | #define IRCONV_SEXT 0x200 /* Sign-extend integer to integer. */ | 224 | #define IRCONV_SEXT 0x200 /* Sign-extend integer to integer. */ |
225 | #define IRCONV_MODEMASK 0x3ff | ||
225 | #define IRCONV_CSH 10 | 226 | #define IRCONV_CSH 10 |
226 | /* Number to integer conversion mode. Ordered by strength of the checks. */ | 227 | /* Number to integer conversion mode. Ordered by strength of the checks. */ |
227 | #define IRCONV_TOBIT (0<<IRCONV_CSH) /* None. Cache only: TOBIT conv. */ | 228 | #define IRCONV_TOBIT (0<<IRCONV_CSH) /* None. Cache only: TOBIT conv. */ |
@@ -348,6 +349,7 @@ IRTDEF(IRTENUM) | |||
348 | /* Native pointer type and the corresponding integer type. */ | 349 | /* Native pointer type and the corresponding integer type. */ |
349 | IRT_PTR = LJ_64 ? IRT_P64 : IRT_P32, | 350 | IRT_PTR = LJ_64 ? IRT_P64 : IRT_P32, |
350 | IRT_INTP = LJ_64 ? IRT_I64 : IRT_INT, | 351 | IRT_INTP = LJ_64 ? IRT_I64 : IRT_INT, |
352 | IRT_UINTP = LJ_64 ? IRT_U64 : IRT_U32, | ||
351 | 353 | ||
352 | /* Additional flags. */ | 354 | /* Additional flags. */ |
353 | IRT_MARK = 0x20, /* Marker for misc. purposes. */ | 355 | IRT_MARK = 0x20, /* Marker for misc. purposes. */ |