Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 88438aef360a68c1828a97e443ba7f683663c6db..e9a043ab343ad16aaf27223e3ef97a67a33dbd8e 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -652,14 +652,9 @@ void FullCodeGenerator::SetStatementPosition( |
} |
} |
- |
-void FullCodeGenerator::SetExpressionPosition( |
- Expression* expr, FullCodeGenerator::InsertBreak insert_break) { |
+void FullCodeGenerator::SetExpressionPosition(Expression* expr) { |
if (expr->position() == RelocInfo::kNoPosition) return; |
- bool recorded = RecordPosition(masm_, expr->position()); |
- if (recorded && insert_break == INSERT_BREAK && info_->is_debug()) { |
- DebugCodegen::GenerateSlot(masm_, RelocInfo::DEBUG_BREAK_SLOT_AT_POSITION); |
- } |
+ RecordPosition(masm_, expr->position()); |
} |
@@ -1231,6 +1226,7 @@ void FullCodeGenerator::VisitForOfStatement(ForOfStatement* stmt) { |
increment_loop_depth(); |
// var iterator = iterable[Symbol.iterator](); |
+ SetExpressionAsStatementPosition(stmt->assign_iterator()); |
VisitForEffect(stmt->assign_iterator()); |
// Loop entry. |