Index: src/fast-codegen.cc |
=================================================================== |
--- src/fast-codegen.cc (revision 3217) |
+++ src/fast-codegen.cc (working copy) |
@@ -401,7 +401,12 @@ |
void FastCodeGenerator::VisitDebuggerStatement(DebuggerStatement* stmt) { |
- UNREACHABLE(); |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
+ Comment cmnt(masm_, "[ DebuggerStatement"); |
+ SetStatementPosition(stmt); |
+ __ CallRuntime(Runtime::kDebugBreak, 0); |
+ // Ignore the return value. |
+#endif |
} |