Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index a0a1b7a23acecef961d1b267284db6f030cd2845..f5a90f40a7eee70df98669be7ab3483505fb6096 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -2970,6 +2970,7 @@ Node* WasmGraphBuilder::LoadMem(wasm::LocalType type, MachineType memtype, |
if (aligned || |
jsgraph()->machine()->UnalignedLoadSupported(memtype, alignment)) { |
if (FLAG_wasm_trap_handler) { |
+ DCHECK(FLAG_wasm_guard_pages); |
titzer
2016/11/09 19:23:47
Generally want to avoid DCHECK'ing flags IMO.
|
Node* context = HeapConstant(module_->instance->context); |
Node* position_node = jsgraph()->Int32Constant(position); |
load = graph()->NewNode(jsgraph()->machine()->ProtectedLoad(memtype), |