#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif
#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 {
constexpr const char* WasmOpcodes::OpcodeName(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsPrefixOpcode(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsControlOpcode(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsUnconditionalJump(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsBreakable(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsExternRefOpcode(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsThrowingOpcode(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsRelaxedSimdOpcode(WasmOpcode opcode) { … }
constexpr bool WasmOpcodes::IsFP16SimdOpcode(WasmOpcode opcode) { … }
#if DEBUG
constexpr bool WasmOpcodes::IsMemoryAccessOpcode(WasmOpcode opcode) { … }
#endif
constexpr uint8_t WasmOpcodes::ExtractPrefix(WasmOpcode opcode) { … }
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) { … }
}
}
}
#endif