Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index faea8c7cb02ca8f9a7d3d9e14edb1fc02d207b51..e28c19d84426d1932c04fca02ca829a808102fc0 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1435,6 +1435,12 @@ void BytecodeGraphBuilder::VisitDebugger() { |
environment()->BindAccumulator(call, &states); |
} |
+// We cannot create a graph from the debugger copy of the bytecode array. |
+#define DEBUG_BREAK(Name, ...) \ |
+ void BytecodeGraphBuilder::Visit##Name() { UNREACHABLE(); } |
+DEBUG_BREAK_BYTECODE_LIST(DEBUG_BREAK); |
+#undef DEBUG_BREAK |
+ |
void BytecodeGraphBuilder::BuildForInPrepare() { |
FrameStateBeforeAndAfter states(this); |
Node* receiver = environment()->LookupAccumulator(); |