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

Issue 11361060: Support checked mode for return type. (Closed)

Created:
8 years, 1 month ago by ngeoffray
Modified:
8 years, 1 month ago
Reviewers:
sra1, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support checked mode for return type. Committed: https://code.google.com/p/dart/source/detail?r=14518

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -32 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 15 chunks +26 lines, -16 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/nodes.dart View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/optimize.dart View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/types.dart View 1 2 8 chunks +8 lines, -3 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/templates/html/dart2js/factoryprovider_HttpRequest.darttemplate View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/return_in_loop_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
A tests/language/return_type_test.dart View 1 2 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
@Stephen: Please let me know if there are additional scripts I should update.
8 years, 1 month ago (2012-11-02 12:47:55 UTC) #1
kasperl
LGTM. Can you cook up a reasonably simple test case? https://codereview.chromium.org/11361060/diff/1/lib/compiler/implementation/lib/js_helper.dart File lib/compiler/implementation/lib/js_helper.dart (right): https://codereview.chromium.org/11361060/diff/1/lib/compiler/implementation/lib/js_helper.dart#newcode1378 ...
8 years, 1 month ago (2012-11-02 12:53:05 UTC) #2
sra1
lgtm https://codereview.chromium.org/11361060/diff/1/lib/compiler/implementation/lib/js_helper.dart File lib/compiler/implementation/lib/js_helper.dart (right): https://codereview.chromium.org/11361060/diff/1/lib/compiler/implementation/lib/js_helper.dart#newcode1378 lib/compiler/implementation/lib/js_helper.dart:1378: voidTypeCheck(value) => identical(value, null); On 2012/11/02 12:53:05, kasperl ...
8 years, 1 month ago (2012-11-02 20:13:51 UTC) #3
ngeoffray
Test added, and thanks Stephen for the review. https://codereview.chromium.org/11361060/diff/5001/lib/compiler/implementation/lib/js_helper.dart File lib/compiler/implementation/lib/js_helper.dart (right): https://codereview.chromium.org/11361060/diff/5001/lib/compiler/implementation/lib/js_helper.dart#newcode1379 lib/compiler/implementation/lib/js_helper.dart:1379: if ...
8 years, 1 month ago (2012-11-05 10:16:27 UTC) #4
ngeoffray
8 years, 1 month ago (2012-11-05 10:17:05 UTC) #5
https://codereview.chromium.org/11361060/diff/1/lib/compiler/implementation/s...
File lib/compiler/implementation/ssa/builder.dart (right):

https://codereview.chromium.org/11361060/diff/1/lib/compiler/implementation/s...
lib/compiler/implementation/ssa/builder.dart:928: DartType returnType;
On 2012/11/02 12:53:05, kasperl wrote:
> Initialize to null for consistency or remove initialization for returnElement?

Done.

Powered by Google App Engine
This is Rietveld 408576698