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

Issue 1050703002: Downwards closure inference (Closed)

Created:
5 years, 8 months ago by Leaf
Modified:
5 years, 8 months ago
Reviewers:
vsm
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dart-dev-compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Downwards closure inference. This implements a basic form of downwards closure inference. It only handles expression functions (=> e), and it does not try to narrow the type of parameters. BUG= R=vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/c821a6fed328c1b3ae1083ae5da3e1075dc94698

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -136 lines) Patch
M lib/runtime/dart/collection.js View 1 4 chunks +4 lines, -4 lines 0 comments Download
M lib/src/checker/rules.dart View 1 2 chunks +28 lines, -0 lines 0 comments Download
M lib/src/info.dart View 2 chunks +9 lines, -0 lines 0 comments Download
M lib/src/options.dart View 1 3 chunks +10 lines, -6 lines 0 comments Download
M lib/src/testing.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M test/checker/inferred_type_test.dart View 1 9 chunks +137 lines, -83 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/sunflower/sunflower.txt View 1 chunk +1 line, -1 line 0 comments Download
M test/dart_codegen/expect/collection/linked_list.dart View 2 chunks +1 line, -9 lines 0 comments Download
M test/dart_codegen/expect/collection/list.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M test/dart_codegen/expect/collection/maps.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M test/dart_codegen/expect/collection/queue.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/dart_codegen/expect/collection/splay_tree.dart View 8 chunks +24 lines, -24 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Leaf
https://codereview.chromium.org/1050703002/diff/1/test/checker/inferred_type_test.dart File test/checker/inferred_type_test.dart (right): https://codereview.chromium.org/1050703002/diff/1/test/checker/inferred_type_test.dart#newcode1243 test/checker/inferred_type_test.dart:1243: String mk(String info) => ''' Renamed this to info, ...
5 years, 8 months ago (2015-03-31 23:41:34 UTC) #2
vsm
https://codereview.chromium.org/1050703002/diff/1/lib/src/checker/rules.dart File lib/src/checker/rules.dart (right): https://codereview.chromium.org/1050703002/diff/1/lib/src/checker/rules.dart#newcode730 lib/src/checker/rules.dart:730: if (returnT.isDynamic) return false; Why do we disallow this? ...
5 years, 8 months ago (2015-04-01 00:14:19 UTC) #3
vsm
On 2015/04/01 00:14:19, vsm wrote: > https://codereview.chromium.org/1050703002/diff/1/lib/src/checker/rules.dart > File lib/src/checker/rules.dart (right): > > https://codereview.chromium.org/1050703002/diff/1/lib/src/checker/rules.dart#newcode730 > ...
5 years, 8 months ago (2015-04-01 17:34:00 UTC) #4
Leaf
> Some cases on Angular this doesn't appear to infer (but should?): > > warning: ...
5 years, 8 months ago (2015-04-03 00:51:06 UTC) #5
Leaf
PTAL. https://codereview.chromium.org/1050703002/diff/1/lib/src/checker/rules.dart File lib/src/checker/rules.dart (right): https://codereview.chromium.org/1050703002/diff/1/lib/src/checker/rules.dart#newcode730 lib/src/checker/rules.dart:730: if (returnT.isDynamic) return false; On 2015/04/01 00:14:19, vsm ...
5 years, 8 months ago (2015-04-03 00:51:55 UTC) #6
vsm
lgtm
5 years, 8 months ago (2015-04-03 12:35:58 UTC) #7
Leaf
5 years, 8 months ago (2015-04-03 16:17:35 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
c821a6fed328c1b3ae1083ae5da3e1075dc94698 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698