Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 1de5ba71cf8eba5649280018f9038c3a225b225f..bb15a2aca7ace3b6858685735ee83ce8451b5f57 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1436,6 +1436,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(); |