#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif
#ifndef V8_WASM_WASM_LIMITS_H_
#define V8_WASM_WASM_LIMITS_H_
#include <cstddef>
#include <cstdint>
#include <limits>
#include "src/base/macros.h"
#include "src/wasm/wasm-constants.h"
namespace v8::internal::wasm {
constexpr size_t kSpecMaxMemory32Pages = …;
constexpr size_t kSpecMaxMemory64Pages = …;
constexpr size_t kV8MaxWasmTypes = …;
constexpr size_t kV8MaxWasmDefinedFunctions = …;
constexpr size_t kV8MaxWasmImports = …;
constexpr size_t kV8MaxWasmExports = …;
constexpr size_t kV8MaxWasmGlobals = …;
constexpr size_t kV8MaxWasmTags = …;
constexpr size_t kV8MaxWasmExceptionTypes = …;
constexpr size_t kV8MaxWasmDataSegments = …;
constexpr size_t kV8MaxWasmMemory32Pages = …;
constexpr size_t kV8MaxWasmMemory64Pages = …;
constexpr size_t kV8MaxWasmStringSize = …;
constexpr size_t kV8MaxWasmModuleSize = …;
constexpr size_t kV8MaxWasmFunctionSize = …;
constexpr size_t kV8MaxWasmFunctionLocals = …;
constexpr size_t kV8MaxWasmFunctionParams = …;
constexpr size_t kV8MaxWasmFunctionReturns = …;
constexpr size_t kV8MaxWasmFunctionBrTableSize = …;
constexpr size_t kV8MaxWasmTableSize = …;
constexpr size_t kV8MaxWasmTableInitEntries = …;
constexpr size_t kV8MaxWasmTables = …;
constexpr size_t kV8MaxWasmMemories = …;
constexpr size_t kV8MaxWasmStructFields = …;
constexpr uint32_t kV8MaxRttSubtypingDepth = …;
constexpr size_t kV8MaxWasmArrayNewFixedLength = …;
constexpr size_t kV8MaxWasmStringLiterals = …;
static_assert …;
static_assert …;
constexpr uint64_t kWasmMaxHeapOffset = …;
constexpr size_t kV8MaxWasmTotalFunctions = …;
static_assert …;
V8_EXPORT_PRIVATE uint32_t max_mem32_pages();
V8_EXPORT_PRIVATE uint32_t max_mem64_pages();
inline uint64_t max_mem32_bytes() { … }
inline uint64_t max_mem64_bytes() { … }
V8_EXPORT_PRIVATE uint32_t max_table_init_entries();
V8_EXPORT_PRIVATE size_t max_module_size();
}
#endif