| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index d3d21eb8d69a04d80dc8093a0224ca710ab07aa5..df4f96ff63a35d54c3fad25005447db483ebd6cd 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -34,6 +34,7 @@
|
| #include "src/log-inl.h"
|
|
|
| #include "src/wasm/ast-decoder.h"
|
| +#include "src/wasm/wasm-limits.h"
|
| #include "src/wasm/wasm-module.h"
|
| #include "src/wasm/wasm-opcodes.h"
|
| #include "src/wasm/wasm-text.h"
|
| @@ -1723,9 +1724,8 @@ Node* WasmGraphBuilder::BuildFloatToIntConversionInstruction(
|
| Node* WasmGraphBuilder::GrowMemory(Node* input) {
|
| Diamond check_input_range(
|
| graph(), jsgraph()->common(),
|
| - graph()->NewNode(
|
| - jsgraph()->machine()->Uint32LessThanOrEqual(), input,
|
| - jsgraph()->Uint32Constant(wasm::WasmModule::kV8MaxPages)),
|
| + graph()->NewNode(jsgraph()->machine()->Uint32LessThanOrEqual(), input,
|
| + jsgraph()->Uint32Constant(wasm::kV8MaxWasmMemoryPages)),
|
| BranchHint::kTrue);
|
|
|
| check_input_range.Chain(*control_);
|
|
|