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

Issue 34413007: Implement type checks for switch expression (Closed)

Created:
7 years, 2 months ago by hausner
Modified:
7 years, 2 months ago
Reviewers:
regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implement type checks for switch expression If the switch expression is not compatible with the case clause constants, we must report a runtime error. Implement this by annotating the temporary variable holding the switch expression with the correct type. Issue 7274 R=regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=29126

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -10 lines) Patch
M runtime/vm/parser.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 4 chunks +25 lines, -8 lines 0 comments Download
M tests/co19/co19-co19.status View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
hausner
7 years, 2 months ago (2013-10-22 23:11:13 UTC) #1
regis
LGTM with one question. https://codereview.chromium.org/34413007/diff/50001/runtime/vm/scopes.h File runtime/vm/scopes.h (right): https://codereview.chromium.org/34413007/diff/50001/runtime/vm/scopes.h#newcode30 runtime/vm/scopes.h:30: type_(&type), Why change this now? ...
7 years, 2 months ago (2013-10-22 23:17:19 UTC) #2
hausner
https://codereview.chromium.org/34413007/diff/50001/runtime/vm/scopes.h File runtime/vm/scopes.h (right): https://codereview.chromium.org/34413007/diff/50001/runtime/vm/scopes.h#newcode30 runtime/vm/scopes.h:30: type_(&type), On 2013/10/22 23:17:20, regis wrote: > Why change ...
7 years, 2 months ago (2013-10-22 23:22:17 UTC) #3
regis
On 2013/10/22 23:22:17, hausner wrote: > https://codereview.chromium.org/34413007/diff/50001/runtime/vm/scopes.h > File runtime/vm/scopes.h (right): > > https://codereview.chromium.org/34413007/diff/50001/runtime/vm/scopes.h#newcode30 > ...
7 years, 2 months ago (2013-10-22 23:32:11 UTC) #4
hausner
PTAL
7 years, 2 months ago (2013-10-23 18:32:03 UTC) #5
regis
LGTM
7 years, 2 months ago (2013-10-23 18:55:42 UTC) #6
hausner
7 years, 2 months ago (2013-10-23 21:15:30 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r29126 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698