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

Issue 190763013: Detect total switches to prevent type pollution by default cases. (Closed)

Created:
6 years, 9 months ago by herhut
Modified:
6 years, 9 months ago
Reviewers:
karlklose, floitsch
CC:
reviews_dartlang.org, sra1, floitsch
Visibility:
Public.

Description

Detect total switches to prevent type pollution by default cases. BUG= R=karlklose@google.com Committed: https://code.google.com/p/dart/source/detail?r=34158

Patch Set 1 #

Total comments: 26

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -30 lines) Patch
M sdk/lib/_internal/compiler/implementation/constants.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 1 1 chunk +29 lines, -12 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/nodes.dart View 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/optimize.dart View 1 8 chunks +75 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/tracer.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/switch_empty_default_test.dart View 1 1 chunk +110 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
herhut
I am looking particularly to feedback on how to pass the range information around.
6 years, 9 months ago (2014-03-10 16:00:38 UTC) #1
karlklose
LGTM. https://codereview.chromium.org/190763013/diff/1/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart File sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (right): https://codereview.chromium.org/190763013/diff/1/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart#newcode685 sdk/lib/_internal/compiler/implementation/ssa/codegen.dart:685: generateStatements(info.statements.last); Why did you change the order here? ...
6 years, 9 months ago (2014-03-12 14:43:45 UTC) #2
floitsch
DBC. https://codereview.chromium.org/190763013/diff/1/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart File sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (right): https://codereview.chromium.org/190763013/diff/1/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart#newcode1093 sdk/lib/_internal/compiler/implementation/ssa/optimize.dart:1093: IntConstant constant = input.constant; Pay attention that "-0.0" ...
6 years, 9 months ago (2014-03-12 16:20:24 UTC) #3
herhut
https://codereview.chromium.org/190763013/diff/1/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart File sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (right): https://codereview.chromium.org/190763013/diff/1/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart#newcode685 sdk/lib/_internal/compiler/implementation/ssa/codegen.dart:685: generateStatements(info.statements.last); On 2014/03/12 14:43:45, karlklose wrote: > Why did ...
6 years, 9 months ago (2014-03-13 13:27:45 UTC) #4
herhut
6 years, 9 months ago (2014-03-20 10:31:21 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as r34158 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698