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

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
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,15 @@
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,
+ super(label == null
+ ? new SourceString(labelName)
+ : label.identifier.source,
+ ElementKind.LABEL,
Lasse Reichstein Nielsen 2012/11/16 15:09:11 So you can have a LabelElement without a Label? Is
ngeoffray 2012/11/16 16:45:28 Done.
+ enclosingElement);
void setBreakTarget() {
isBreakTarget = true;

Powered by Google App Engine
This is Rietveld 408576698