diff options
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r-- | src/lj_jit.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index fa754b64..b0d90fcd 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -438,9 +438,9 @@ typedef struct jit_State { | |||
438 | int32_t framedepth; /* Current frame depth. */ | 438 | int32_t framedepth; /* Current frame depth. */ |
439 | int32_t retdepth; /* Return frame depth (count of RETF). */ | 439 | int32_t retdepth; /* Return frame depth (count of RETF). */ |
440 | 440 | ||
441 | uint32_t k32[LJ_K32__MAX]; /* Common 4 byte constants used by backends. */ | ||
441 | TValue ksimd[LJ_KSIMD__MAX*2+1]; /* 16 byte aligned SIMD constants. */ | 442 | TValue ksimd[LJ_KSIMD__MAX*2+1]; /* 16 byte aligned SIMD constants. */ |
442 | TValue k64[LJ_K64__MAX]; /* Common 8 byte constants used by backends. */ | 443 | TValue k64[LJ_K64__MAX]; /* Common 8 byte constants. */ |
443 | uint32_t k32[LJ_K32__MAX]; /* Ditto for 4 byte constants. */ | ||
444 | 444 | ||
445 | IRIns *irbuf; /* Temp. IR instruction buffer. Biased with REF_BIAS. */ | 445 | IRIns *irbuf; /* Temp. IR instruction buffer. Biased with REF_BIAS. */ |
446 | IRRef irtoplim; /* Upper limit of instuction buffer (biased). */ | 446 | IRRef irtoplim; /* Upper limit of instuction buffer (biased). */ |
@@ -472,7 +472,6 @@ typedef struct jit_State { | |||
472 | 472 | ||
473 | HotPenalty penalty[PENALTY_SLOTS]; /* Penalty slots. */ | 473 | HotPenalty penalty[PENALTY_SLOTS]; /* Penalty slots. */ |
474 | uint32_t penaltyslot; /* Round-robin index into penalty slots. */ | 474 | uint32_t penaltyslot; /* Round-robin index into penalty slots. */ |
475 | uint32_t prngstate; /* PRNG state. */ | ||
476 | 475 | ||
477 | #ifdef LUAJIT_ENABLE_TABLE_BUMP | 476 | #ifdef LUAJIT_ENABLE_TABLE_BUMP |
478 | RBCHashEntry rbchash[RBCHASH_SLOTS]; /* Reverse bytecode map. */ | 477 | RBCHashEntry rbchash[RBCHASH_SLOTS]; /* Reverse bytecode map. */ |
@@ -516,12 +515,4 @@ jit_State; | |||
516 | #define lj_assertJ(c, ...) ((void)J) | 515 | #define lj_assertJ(c, ...) ((void)J) |
517 | #endif | 516 | #endif |
518 | 517 | ||
519 | /* Trivial PRNG e.g. used for penalty randomization. */ | ||
520 | static LJ_AINLINE uint32_t LJ_PRNG_BITS(jit_State *J, int bits) | ||
521 | { | ||
522 | /* Yes, this LCG is very weak, but that doesn't matter for our use case. */ | ||
523 | J->prngstate = J->prngstate * 1103515245 + 12345; | ||
524 | return J->prngstate >> (32-bits); | ||
525 | } | ||
526 | |||
527 | #endif | 518 | #endif |