wasm-limits.h
Megabyte-scale size constant in source
SHA-256ad298da514a6d739913a138213afc4f6fd3ee1794e799e8c7120853a844a400a
MaleculeH(Mg)
Evidence
1// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#if !V8_ENABLE_WEBASSEMBLY
6#error This header should only …
9:15… M_WASM_LIMITS_H_
10#define V8_WASM_WASM_LIMITS_H_
11
12#include <cstddef>
13#include <cstdint>
14#include <limits>
15
16#include "src/base/macros.h"
17#include "src/wasm/wasm-constants.h"
18
19namespace v8 {
⋯4 lines
27:49… Assembly modules.
28// The limits are agreed upon with other engines for consistency.
29constexpr size_t kV8MaxWasmTypes = 1000000;
30constexpr size_t kV8MaxWasmFunctions = …
45:23… xWasmStringSize = 100000;
46constexpr size_t kV8MaxWasmModuleSize = 1024 * 1024 * 1024; // = 1 GiB
47constexpr size_t kV8MaxWasmFunctionSize = 7654321;
48constexpr size_t kV8MaxWasmFunctionLocals = 50000;
49const …