chromium/v8/src/sandbox/js-dispatch-table.cc

// Copyright 2024 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/sandbox/js-dispatch-table.h"

#include "src/common/code-memory-access-inl.h"
#include "src/execution/isolate.h"
#include "src/logging/counters.h"
#include "src/objects/code-inl.h"
#include "src/sandbox/js-dispatch-table-inl.h"

#ifdef V8_ENABLE_SANDBOX

namespace v8 {
namespace internal {

void JSDispatchEntry::CheckFieldOffsets() {}

JSDispatchHandle JSDispatchTable::PreAllocateEntries(
    Space* space, int count, bool ensure_static_handles) {}

bool JSDispatchTable::PreAllocatedEntryNeedsInitialization(
    Space* space, JSDispatchHandle handle) {}

void JSDispatchTable::InitializePreAllocatedEntry(Space* space,
                                                  JSDispatchHandle handle,
                                                  Tagged<Code> code,
                                                  uint16_t parameter_count) {}

uint32_t JSDispatchTable::Sweep(Space* space, Counters* counters) {}

#ifdef DEBUG
// Static
std::atomic<bool> JSDispatchTable::initialized_ =;
#endif  // DEBUG

// Static
base::LeakyObject<JSDispatchTable> JSDispatchTable::instance_;

}  // namespace internal
}  // namespace v8

#endif  // V8_ENABLE_SANDBOX