Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(883)

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 10804024: Add source mapping info to loops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index 431f501127b9dfe4d4509a17ab91a172d0b9a162..c90d5ca7faf0ed2bd7b389db513349013b325bce 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -785,6 +785,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
bool visitLoopInfo(HLoopBlockInformation info) {
HExpressionInformation condition = info.condition;
bool isConditionExpression = isJSCondition(condition);
+ buffer.setSourceLocation(work.element, info.sourcePosition.getBeginToken());
switch (info.kind) {
// Treate all three "test-first" loops the same way.
@@ -902,6 +903,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
'Unexpected loop kind: ${info.kind}',
instruction: condition.conditionExpression);
}
+ buffer.setSourceLocation(work.element, info.sourcePosition.getEndToken());
return true;
}
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698