Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 5f3c1d2ceb949eba99f3b60c1c8dd50df216732c..00804dbead115a26f0e5ed6ff3df2c5061a1ca46 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -1160,6 +1160,7 @@ void FullCodeGenerator::VisitForStatement(ForStatement* stmt) { |
Iteration loop_statement(this, stmt); |
if (stmt->init() != NULL) { |
+ SetStatementPosition(stmt); |
Visit(stmt->init()); |
} |
@@ -1173,8 +1174,8 @@ void FullCodeGenerator::VisitForStatement(ForStatement* stmt) { |
PrepareForBailoutForId(stmt->ContinueId(), NO_REGISTERS); |
__ bind(loop_statement.continue_label()); |
- SetStatementPosition(stmt); |
if (stmt->next() != NULL) { |
+ SetStatementPosition(stmt); |
Yang
2012/03/07 18:28:36
Only set a debug break slot if there is actually a
|
Visit(stmt->next()); |
} |