Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 132fa67d1b645b15ccbb0a8be411f776f22bf30f..7192df1394580d4fb8b500d104235d2218527213 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_); |