Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index a86195047a98f763bd7280390745795d1bab02ef..bc41ac74101dce01a9b1f7a8a831934a5a7a50a7 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1521,6 +1521,13 @@ void BytecodeGraphBuilder::VisitReturn() { |
MergeControlToLeaveFunction(control); |
} |
+void BytecodeGraphBuilder::VisitDebugger() { |
+ FrameStateBeforeAndAfter states(this); |
+ Node* call = |
+ NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement)); |
+ environment()->BindAccumulator(call, &states); |
+} |
+ |
void BytecodeGraphBuilder::BuildForInPrepare() { |
FrameStateBeforeAndAfter states(this); |
Node* receiver = environment()->LookupAccumulator(); |