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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 11414029: At SSA build-time, change the block information that we attach to loop with aborting bodies. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/elements/elements.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/elements/elements.dart (revision 15009)
+++ sdk/lib/_internal/compiler/implementation/elements/elements.dart (working copy)
@@ -1933,10 +1933,17 @@
final TargetElement target;
bool isBreakTarget = false;
bool isContinueTarget = false;
- LabelElement(Label label, this.labelName, this.target,
+ LabelElement(Label label, String labelName, this.target,
Element enclosingElement)
: this.label = label,
- super(label.identifier.source, ElementKind.LABEL, enclosingElement);
+ this.labelName = labelName,
+ // In case of a synthetic label, just use [labelName] for
+ // identifying the element.
+ super(label == null
+ ? new SourceString(labelName)
+ : label.identifier.source,
+ ElementKind.LABEL,
+ enclosingElement);
void setBreakTarget() {
isBreakTarget = true;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698