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

Issue 10908012: Support checked mode for field setters. (Closed)

Created:
8 years, 3 months ago by ngeoffray
Modified:
8 years, 3 months ago
Reviewers:
floitsch, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support checked mode for field setters.

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -87 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M lib/compiler/implementation/elements/elements.dart View 1 1 chunk +18 lines, -18 lines 0 comments Download
M lib/compiler/implementation/enqueue.dart View 1 2 chunks +15 lines, -6 lines 3 comments Download
M lib/compiler/implementation/js_backend/backend.dart View 1 1 chunk +39 lines, -0 lines 0 comments Download
M lib/compiler/implementation/js_backend/emitter.dart View 1 5 chunks +52 lines, -20 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 3 chunks +5 lines, -43 lines 0 comments Download
A tests/language/field_type_check2_test.dart View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A tests/language/field_type_check_test.dart View 1 chunk +11 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ngeoffray
Note that this is not enough for full checked mode, still missing are: checks in ...
8 years, 3 months ago (2012-08-30 12:51:55 UTC) #1
floitsch
LGTM. http://codereview.chromium.org/10908012/diff/1/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): http://codereview.chromium.org/10908012/diff/1/lib/compiler/implementation/elements/elements.dart#newcode737 lib/compiler/implementation/elements/elements.dart:737: compiler.withCurrentElement(this, () { Is this still necessary? http://codereview.chromium.org/10908012/diff/1/lib/compiler/implementation/enqueue.dart ...
8 years, 3 months ago (2012-08-30 14:35:14 UTC) #2
kasperl
http://codereview.chromium.org/10908012/diff/1/lib/compiler/implementation/js_backend/backend.dart File lib/compiler/implementation/js_backend/backend.dart (right): http://codereview.chromium.org/10908012/diff/1/lib/compiler/implementation/js_backend/backend.dart#newcode552 lib/compiler/implementation/js_backend/backend.dart:552: SourceString helper; Wouldn't it be simpler just to return ...
8 years, 3 months ago (2012-08-30 14:36:08 UTC) #3
ngeoffray
Thanks Florian and Kasper http://codereview.chromium.org/10908012/diff/1/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): http://codereview.chromium.org/10908012/diff/1/lib/compiler/implementation/elements/elements.dart#newcode737 lib/compiler/implementation/elements/elements.dart:737: compiler.withCurrentElement(this, () { On 2012/08/30 ...
8 years, 3 months ago (2012-08-30 17:10:21 UTC) #4
ahe
DBC https://chromiumcodereview.appspot.com/10908012/diff/9001/lib/compiler/implementation/enqueue.dart File lib/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/10908012/diff/9001/lib/compiler/implementation/enqueue.dart#newcode170 lib/compiler/implementation/enqueue.dart:170: if (compiler.enableTypeAssertions) { This doesn't feel like the ...
8 years, 3 months ago (2012-08-31 09:46:51 UTC) #5
ngeoffray
8 years, 3 months ago (2012-09-05 13:00:29 UTC) #6
https://chromiumcodereview.appspot.com/10908012/diff/9001/lib/compiler/implem...
File lib/compiler/implementation/enqueue.dart (right):

https://chromiumcodereview.appspot.com/10908012/diff/9001/lib/compiler/implem...
lib/compiler/implementation/enqueue.dart:173: SourceString helper =
compiler.backend.getCheckedModeHelper(type);
On 2012/08/31 09:46:51, ahe wrote:
> And this is feeling even wronger :-)

Agree. Fix is in https://chromiumcodereview.appspot.com/10910088/.

Powered by Google App Engine
This is Rietveld 408576698