chromium/v8/src/wasm/wasm-opcodes-inl.h

// Copyright 2020 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_WASM_WASM_OPCODES_INL_H_
#define V8_WASM_WASM_OPCODES_INL_H_

#include <array>

#include "src/base/template-utils.h"
#include "src/codegen/signature.h"
#include "src/execution/messages.h"
#include "src/wasm/wasm-opcodes.h"

namespace v8 {
namespace internal {
namespace wasm {

// static
constexpr const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) {}

// static
constexpr bool WasmOpcodes::IsPrefixOpcode(WasmOpcode opcode) {}

// static
constexpr bool WasmOpcodes::IsControlOpcode(WasmOpcode opcode) {}

// static
constexpr bool WasmOpcodes::IsUnconditionalJump(WasmOpcode opcode) {}

// static
constexpr bool WasmOpcodes::IsBreakable(WasmOpcode opcode) {}

// static
constexpr bool WasmOpcodes::IsExternRefOpcode(WasmOpcode opcode) {}

// static
constexpr bool WasmOpcodes::IsThrowingOpcode(WasmOpcode opcode) {}

// static
constexpr bool WasmOpcodes::IsRelaxedSimdOpcode(WasmOpcode opcode) {}

constexpr bool WasmOpcodes::IsFP16SimdOpcode(WasmOpcode opcode) {}

#if DEBUG
// static
constexpr bool WasmOpcodes::IsMemoryAccessOpcode(WasmOpcode opcode) {}
#endif  // DEBUG

constexpr uint8_t WasmOpcodes::ExtractPrefix(WasmOpcode opcode) {}

impl  // namespace impl

constexpr const FunctionSig* WasmOpcodes::Signature(WasmOpcode opcode) {}

constexpr const FunctionSig* WasmOpcodes::SignatureForAtomicOp(
    WasmOpcode opcode, bool is_memory64) {}

constexpr const FunctionSig* WasmOpcodes::AsmjsSignature(WasmOpcode opcode) {}

constexpr MessageTemplate WasmOpcodes::TrapReasonToMessageId(
    TrapReason reason) {}

constexpr TrapReason WasmOpcodes::MessageIdToTrapReason(
    MessageTemplate message) {}

const char* WasmOpcodes::TrapReasonMessage(TrapReason reason) {}

}  // namespace wasm
}  // namespace internal
}  // namespace v8

#endif  // V8_WASM_WASM_OPCODES_INL_H_