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

Issue 1191193005: Implement simple switch statements as nested if/else. (Closed)

Created:
5 years, 6 months ago by Kevin Millikin (Google)
Modified:
5 years, 6 months ago
Reviewers:
asgerf
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Implement simple switch statements as nested if/else. Simple switch statements that do not have continue to labeled cases are compiled into a chain if/else comparisons. R=asgerf@google.com Committed: https://github.com/dart-lang/sdk/commit/bf595224d58bd175945e9a91df86553936833b7f

Patch Set 1 #

Patch Set 2 : Clean up an ugly comment. #

Total comments: 4

Patch Set 3 : Incorporate review comments. #

Patch Set 4 : Update status files, and merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -680 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart View 1 2 3 2 chunks +81 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M pkg/pkg.status View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 37 chunks +24 lines, -455 lines 0 comments Download
M tests/compiler/dart2js_extra/dart2js_extra.status View 1 2 3 4 chunks +12 lines, -17 lines 0 comments Download
M tests/compiler/dart2js_native/dart2js_native.status View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M tests/corelib/corelib.status View 1 2 3 3 chunks +0 lines, -9 lines 0 comments Download
M tests/html/html.status View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/isolate.status View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 10 chunks +10 lines, -45 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 11 chunks +75 lines, -80 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 5 chunks +48 lines, -66 lines 0 comments Download
M tests/utils/utils.status View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
Kevin Millikin (Google)
5 years, 6 months ago (2015-06-19 11:27:07 UTC) #2
asgerf
LGTM https://codereview.chromium.org/1191193005/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart (right): https://codereview.chromium.org/1191193005/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart#newcode1658 pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart:1658: for (SwitchCaseInfo caseInfo in cases) { Anonymize buildRight? ...
5 years, 6 months ago (2015-06-19 12:47:34 UTC) #3
Kevin Millikin (Google)
https://codereview.chromium.org/1191193005/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart (right): https://codereview.chromium.org/1191193005/diff/20001/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart#newcode1658 pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart:1658: for (SwitchCaseInfo caseInfo in cases) { On 2015/06/19 12:47:34, ...
5 years, 6 months ago (2015-06-19 12:59:52 UTC) #4
Kevin Millikin (Google)
5 years, 6 months ago (2015-06-22 09:29:47 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
bf595224d58bd175945e9a91df86553936833b7f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698