chromium/v8/src/compiler/turboshaft/wasm-assembler-helpers.h

// Copyright 2023 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.

#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif  // !V8_ENABLE_WEBASSEMBLY

#ifndef V8_COMPILER_TURBOSHAFT_WASM_ASSEMBLER_HELPERS_H_
#define V8_COMPILER_TURBOSHAFT_WASM_ASSEMBLER_HELPERS_H_

#include "src/compiler/turboshaft/operations.h"
#include "src/roots/roots.h"

namespace v8::internal::compiler::turboshaft {

struct RootTypes {};

template <typename AssemblerT>
OpIndex LoadRootHelper(AssemblerT&& assembler, RootIndex index) {}

#define LOAD_INSTANCE_FIELD

#define LOAD_PROTECTED_INSTANCE_FIELD(instance, name, type)

#define LOAD_IMMUTABLE_PROTECTED_INSTANCE_FIELD(instance, name, type)

#define LOAD_IMMUTABLE_INSTANCE_FIELD

#define LOAD_ROOT

}  // namespace v8::internal::compiler::turboshaft

#endif  // V8_COMPILER_TURBOSHAFT_WASM_ASSEMBLER_HELPERS_H_