Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 83ff7b7b27099358aa37c6977e95388c439c7eff..1893b66ad8f7918836aafdc4eb4f8f5b42c008be 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1518,6 +1518,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(); |