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

Issue 10389113: Make a single labeled statement hold all its labels. (Closed)

Created:
8 years, 7 months ago by Lasse Reichstein Nielsen
Modified:
8 years, 7 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make a single labeled statement hold all its labels. Previously a single labeled statement only held one label, and nested labeled statements was used for multiple labels. Committed: https://code.google.com/p/dart/source/detail?r=7602

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -37 lines) Patch
M lib/compiler/implementation/resolver.dart View 3 chunks +22 lines, -20 lines 2 comments Download
M lib/compiler/implementation/scanner/listener.dart View 1 chunk +2 lines, -6 lines 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 1 chunk +5 lines, -9 lines 0 comments Download
M lib/compiler/implementation/tree/unparser.dart View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein Nielsen
Builds on top of my other open CL.
8 years, 7 months ago (2012-05-14 09:13:16 UTC) #1
ahe
LGTM! https://chromiumcodereview.appspot.com/10389113/diff/1/lib/compiler/implementation/resolver.dart File lib/compiler/implementation/resolver.dart (right): https://chromiumcodereview.appspot.com/10389113/diff/1/lib/compiler/implementation/resolver.dart#newcode479 lib/compiler/implementation/resolver.dart:479: LabeledStatementLabelScope(this.outer, this.labels); My guess is that this scope ...
8 years, 7 months ago (2012-05-14 10:11:40 UTC) #2
Lasse Reichstein Nielsen
8 years, 7 months ago (2012-05-14 10:44:59 UTC) #3
https://chromiumcodereview.appspot.com/10389113/diff/1/lib/compiler/implement...
File lib/compiler/implementation/resolver.dart (right):

https://chromiumcodereview.appspot.com/10389113/diff/1/lib/compiler/implement...
lib/compiler/implementation/resolver.dart:479:
LabeledStatementLabelScope(this.outer, this.labels);
True. It's probably slower if there is only one label, which is the "common"
case.
If it turns out to be a measurable problem, we can introduce a simpler scope for
that case.

Powered by Google App Engine
This is Rietveld 408576698