chromium/v8/src/wasm/wasm-import-wrapper-cache.cc

// Copyright 2019 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/wasm/wasm-import-wrapper-cache.h"

#include <vector>

#include "src/codegen/assembler-inl.h"
#include "src/codegen/flush-instruction-cache.h"
#include "src/common/code-memory-access-inl.h"
#include "src/wasm/function-compiler.h"
#include "src/wasm/std-object-sizes.h"
#include "src/wasm/wasm-code-manager.h"
#include "src/wasm/wasm-engine.h"

namespace v8::internal::wasm {

WasmCode* WasmImportWrapperCache::ModificationScope::operator[](
    const CacheKey& key) {}

// The wrapper cache is shared per-process; but it is initialized on demand, and
// this action is triggered by some isolate; so we use this isolate for error
// reporting and running GCs if required.
void WasmImportWrapperCache::LazyInitialize(Isolate* triggering_isolate) {}

WasmCode* WasmImportWrapperCache::ModificationScope::AddWrapper(
    const CacheKey& key, WasmCompilationResult result, WasmCode::Kind kind) {}

void WasmImportWrapperCache::LogForIsolate(Isolate* isolate) {}

void WasmImportWrapperCache::Free(std::vector<WasmCode*>& wrappers) {}

WasmCode* WasmImportWrapperCache::MaybeGet(ImportCallKind kind,
                                           uint32_t canonical_type_index,
                                           int expected_arity,
                                           Suspend suspend) const {}

WasmCode* WasmImportWrapperCache::Lookup(Address pc) const {}

size_t WasmImportWrapperCache::EstimateCurrentMemoryConsumption() const {}

}  // namespace v8::internal::wasm