blob: c321b82ba2c69888f698d939fe73df2e6c5bea09 [file] [log] [blame]
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/common/globals.h"
#include "src/objects/contexts.h"
namespace v8 {
namespace internal {
class MathRandom : public AllStatic {
static void InitializeContext(Isolate* isolate,
Handle<Context> native_context);
static void ResetContext(Context native_context);
// Takes native context as a raw Address for ExternalReference usage.
// Returns a tagged Smi as a raw Address.
static Address RefillCache(Isolate* isolate, Address raw_native_context);
static const int kCacheSize = 64;
static const int kStateSize = 2 * kInt64Size;
struct State {
uint64_t s0;
uint64_t s1;
} // namespace internal
} // namespace v8