20 isolate->factory()->NewFixedDoubleArray(
kCacheSize));
41 State state = pod->get(0);
46 if (state.s0 == 0 && state.s1 == 0) {
51 isolate->random_number_generator()->NextBytes(&seed,
sizeof(seed));
55 CHECK(state.s0 != 0 || state.s1 != 0);
70 return new_index.
ptr();
static double ToDouble(uint64_t state0)
static uint64_t MurmurHash3(uint64_t)
static void XorShift128(uint64_t *state0, uint64_t *state1)
static Address RefillCache(Isolate *isolate, Address raw_native_context)
static void ResetContext(Tagged< Context > native_context)
static const int kCacheSize
static void InitializeContext(Isolate *isolate, DirectHandle< Context > native_context)
static Handle< PodArray< T > > New(Isolate *isolate, int length, AllocationType allocation=AllocationType::kYoung)
static constexpr Tagged< Smi > FromInt(int value)
static constexpr Tagged< Smi > zero()
V8_INLINE constexpr StorageType ptr() const
V8_EXPORT_PRIVATE FlagValues v8_flags
!IsContextMap !IsContextMap native_context
Tagged< To > Cast(Tagged< From > value, const v8::SourceLocation &loc=INIT_SOURCE_LOCATION_IN_DEBUG)