Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index a560cb1f62d9c9e2e23f1c68982603389c5309b1..8cf901567455d4b52f3e20a05704fcc4cd7cbfe0 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -1779,7 +1779,7 @@ Node* WasmGraphBuilder::GrowMemory(Node* input) { |
Diamond check_input_range( |
graph(), jsgraph()->common(), |
graph()->NewNode(jsgraph()->machine()->Uint32LessThanOrEqual(), input, |
- jsgraph()->Uint32Constant(wasm::kV8MaxWasmMemoryPages)), |
+ jsgraph()->Uint32Constant(FLAG_wasm_max_mem_pages)), |
BranchHint::kTrue); |
check_input_range.Chain(*control_); |