| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_WASM_WASM_LIMITS_H_ | 5 #ifndef V8_WASM_WASM_LIMITS_H_ |
| 6 #define V8_WASM_WASM_LIMITS_H_ | 6 #define V8_WASM_WASM_LIMITS_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace wasm { | 10 namespace wasm { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 const size_t kV8MaxWasmFunctionLocals = 50000; | 24 const size_t kV8MaxWasmFunctionLocals = 50000; |
| 25 const size_t kV8MaxWasmFunctionParams = 1000; | 25 const size_t kV8MaxWasmFunctionParams = 1000; |
| 26 const size_t kV8MaxWasmFunctionMultiReturns = 1000; | 26 const size_t kV8MaxWasmFunctionMultiReturns = 1000; |
| 27 const size_t kV8MaxWasmFunctionReturns = 1; | 27 const size_t kV8MaxWasmFunctionReturns = 1; |
| 28 const size_t kV8MaxWasmTableSize = 10000000; | 28 const size_t kV8MaxWasmTableSize = 10000000; |
| 29 const size_t kV8MaxWasmTableEntries = 10000000; | 29 const size_t kV8MaxWasmTableEntries = 10000000; |
| 30 const size_t kV8MaxWasmTables = 1; | 30 const size_t kV8MaxWasmTables = 1; |
| 31 const size_t kV8MaxWasmMemories = 1; | 31 const size_t kV8MaxWasmMemories = 1; |
| 32 | 32 |
| 33 const size_t kSpecMaxWasmMemoryPages = 65536; | 33 const size_t kSpecMaxWasmMemoryPages = 65536; |
| 34 const size_t kSpecMaxWasmTableSize = 0xFFFFFFFFu; |
| 34 | 35 |
| 35 const uint64_t kWasmMaxHeapOffset = | 36 const uint64_t kWasmMaxHeapOffset = |
| 36 static_cast<uint64_t>( | 37 static_cast<uint64_t>( |
| 37 std::numeric_limits<uint32_t>::max()) // maximum base value | 38 std::numeric_limits<uint32_t>::max()) // maximum base value |
| 38 + std::numeric_limits<uint32_t>::max(); // maximum index value | 39 + std::numeric_limits<uint32_t>::max(); // maximum index value |
| 39 | 40 |
| 40 } // namespace wasm | 41 } // namespace wasm |
| 41 } // namespace internal | 42 } // namespace internal |
| 42 } // namespace v8 | 43 } // namespace v8 |
| 43 | 44 |
| 44 #endif // V8_WASM_WASM_LIMITS_H_ | 45 #endif // V8_WASM_WASM_LIMITS_H_ |
| OLD | NEW |