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

Issue 1355893003: Rewire DDC to use the analyzer task model (Closed)

Created:
5 years, 3 months ago by vsm
Modified:
5 years, 2 months ago
CC:
dev-compiler+reviews_dartlang.org, Brian Wilkerson, Jennifer Messerly
Base URL:
https://github.com/dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Rewire DDC to use the analyzer task model This is WIP - not quite ready for review. Not all tests are passing yet. Most checker and inference tests are passing, but about a quarter are failing - need to look. The non-runtime changes under lib along with test/testing.dart are the only real changes. We seem to be losing some type info - lots of new casts - but I see at least one removed. R=brianwilkerson@google.com, jmesserly@google.com, leafp@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/6fe74a269f7877b6aae3d03bfd9be9e664968cf8

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix for identifiers #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : With leafp's sdk CL patched in #

Patch Set 5 : Rebase on latest sdk #

Patch Set 6 : Rebase onto latest (including sdk) #

Patch Set 7 : Delete tests on obsolete flags, other minor cleanup #

Patch Set 8 : Rebase #

Patch Set 9 : Remove obsolete check #

Patch Set 10 : Rebase and a workaround #

Patch Set 11 : Merge #

Patch Set 12 : Merge #

Patch Set 13 : Sync to latest #

Patch Set 14 : Cleanup #

Total comments: 3

Patch Set 15 : Update pubspec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -613 lines) Patch
M lib/runtime/dart/js.js View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +12 lines, -12 lines 0 comments Download
M lib/src/analysis_context.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -5 lines 0 comments Download
M lib/src/compiler.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M lib/src/dart_sdk.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M lib/strong_mode.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -5 lines 0 comments Download
M pubspec.yaml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M test/checker/checker_test.dart View 1 2 3 4 5 6 4 chunks +2 lines, -68 lines 0 comments Download
M test/checker/inferred_type_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +6 lines, -235 lines 0 comments Download
M test/codegen/expect/collection/equality.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen/expect/js_test.txt View 1 2 3 4 5 6 7 1 chunk +279 lines, -279 lines 0 comments Download
M test/testing.dart View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M tool/input_sdk/lib/js/dart2js/js_dart2js.dart View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +5 lines, -5 lines 0 comments Download
M tool/sdk_expected_errors.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
vsm
https://codereview.chromium.org/1355893003/diff/1/pubspec.yaml File pubspec.yaml (right): https://codereview.chromium.org/1355893003/diff/1/pubspec.yaml#newcode40 pubspec.yaml:40: path: ../dart/sdk/pkg/analyzer/ This needs to be replaced with a ...
5 years, 3 months ago (2015-09-18 22:57:45 UTC) #2
vsm
https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart File lib/src/checker/rules.dart (right): https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart#newcode202 lib/src/checker/rules.dart:202: if (expr is SimpleIdentifier) { Brian / Leaf - ...
5 years, 3 months ago (2015-09-18 23:32:12 UTC) #3
Jennifer Messerly
Conceptually this is super cool. :) We should track down why JS code qualify declined ...
5 years, 3 months ago (2015-09-19 00:18:46 UTC) #5
Jennifer Messerly
Anyway, I'm just guessing, but that was the one place I remember we were doing ...
5 years, 3 months ago (2015-09-19 00:23:38 UTC) #6
Jennifer Messerly
https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js File lib/runtime/dart/_foreign_helper.js (right): https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js#newcode121 lib/runtime/dart/_foreign_helper.js:121: return dart.as(a + b, core.String); On 2015/09/19 00:18:46, John ...
5 years, 3 months ago (2015-09-19 00:27:51 UTC) #7
vsm
On 2015/09/19 00:23:38, John Messerly wrote: > Anyway, I'm just guessing, but that was the ...
5 years, 3 months ago (2015-09-21 15:47:13 UTC) #8
vsm
On 2015/09/19 00:27:51, John Messerly wrote: > https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js > File lib/runtime/dart/_foreign_helper.js (right): > > https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js#newcode121 ...
5 years, 3 months ago (2015-09-21 15:49:07 UTC) #9
Leaf
I have a CL in progress that may help with some of this, but there ...
5 years, 3 months ago (2015-09-21 17:15:59 UTC) #10
vsm
On 2015/09/21 17:15:59, Leaf wrote: > I have a CL in progress that may help ...
5 years, 3 months ago (2015-09-21 17:21:34 UTC) #11
Jennifer Messerly
https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js File lib/runtime/dart/_foreign_helper.js (right): https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js#newcode121 lib/runtime/dart/_foreign_helper.js:121: return dart.as(a + b, core.String); On 2015/09/21 17:15:59, Leaf ...
5 years, 3 months ago (2015-09-21 18:19:00 UTC) #12
vsm
On 2015/09/21 18:19:00, John Messerly wrote: > https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js > File lib/runtime/dart/_foreign_helper.js (right): > > https://codereview.chromium.org/1355893003/diff/1/lib/runtime/dart/_foreign_helper.js#newcode121 ...
5 years, 3 months ago (2015-09-22 18:06:28 UTC) #13
Brian Wilkerson
https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart File lib/src/checker/rules.dart (right): https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart#newcode202 lib/src/checker/rules.dart:202: if (expr is SimpleIdentifier) { > It happens because ...
5 years, 3 months ago (2015-09-24 19:41:01 UTC) #15
Leaf
https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart File lib/src/checker/rules.dart (right): https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart#newcode202 lib/src/checker/rules.dart:202: if (expr is SimpleIdentifier) { On 2015/09/24 19:41:01, Brian ...
5 years, 3 months ago (2015-09-24 19:48:21 UTC) #16
Brian Wilkerson
https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart File lib/src/checker/rules.dart (right): https://codereview.chromium.org/1355893003/diff/10001/lib/src/checker/rules.dart#newcode202 lib/src/checker/rules.dart:202: if (expr is SimpleIdentifier) { Yes. I think I ...
5 years, 3 months ago (2015-09-24 21:17:48 UTC) #17
vsm
PTAL - all tests pass with leafp's latest CL. Generated code looks good - we ...
5 years, 2 months ago (2015-10-07 21:14:16 UTC) #18
Leaf
lgtm https://codereview.chromium.org/1355893003/diff/220001/pubspec.yaml File pubspec.yaml (right): https://codereview.chromium.org/1355893003/diff/220001/pubspec.yaml#newcode44 pubspec.yaml:44: dependency_overrides: You'll want to make sure to take ...
5 years, 2 months ago (2015-10-07 21:48:38 UTC) #19
Jennifer Messerly
LGTM https://codereview.chromium.org/1355893003/diff/220001/test/checker/checker_test.dart File test/checker/checker_test.dart (right): https://codereview.chromium.org/1355893003/diff/220001/test/checker/checker_test.dart#newcode1978 test/checker/checker_test.dart:1978: /*severe:InvalidMethodOverride,severe:InvalidMethodOverride*/m(a) {} is this an example of a ...
5 years, 2 months ago (2015-10-07 21:50:27 UTC) #20
vsm
https://codereview.chromium.org/1355893003/diff/220001/test/checker/checker_test.dart File test/checker/checker_test.dart (right): https://codereview.chromium.org/1355893003/diff/220001/test/checker/checker_test.dart#newcode1978 test/checker/checker_test.dart:1978: /*severe:InvalidMethodOverride,severe:InvalidMethodOverride*/m(a) {} On 2015/10/07 21:50:26, John Messerly wrote: > ...
5 years, 2 months ago (2015-10-07 22:02:21 UTC) #21
Brian Wilkerson
LGTM
5 years, 2 months ago (2015-10-07 22:44:18 UTC) #22
vsm
5 years, 2 months ago (2015-10-08 20:43:01 UTC) #23
Message was sent while issue was closed.
Committed patchset #15 (id:240001) manually as
6fe74a269f7877b6aae3d03bfd9be9e664968cf8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698