File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ void CodeGenSelector::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
742742
743743
744744void CodeGenSelector::VisitDebuggerStatement (DebuggerStatement* stmt) {
745- BAILOUT ( " DebuggerStatement " );
745+ // Debugger statement is supported.
746746}
747747
748748
Original file line number Diff line number Diff line change @@ -369,7 +369,12 @@ void FastCodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) {
369369
370370
371371void FastCodeGenerator::VisitDebuggerStatement (DebuggerStatement* stmt) {
372- UNREACHABLE ();
372+ #ifdef ENABLE_DEBUGGER_SUPPORT
373+ Comment cmnt (masm_, " [ DebuggerStatement" );
374+ SetStatementPosition (stmt);
375+ __ CallRuntime (Runtime::kDebugBreak , 0 );
376+ // Ignore the return value.
377+ #endif
373378}
374379
375380
You can’t perform that action at this time.
0 commit comments