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

Issue 2627723003: Improvements to the kernel tree shaker. (Closed)

Created:
3 years, 11 months ago by asgerf
Modified:
3 years, 11 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Improvements to the kernel tree shaker. - Use strong-mode types for more precise tree shaking. - Bail out nicely if dart:mirrors is used. - Run the tree shaker in the VM target. The initial tree-shaking pass could be combined with the type checking pass (inserting implicit down casts) but for now they remain separate. R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/71efbad90c07bece4010162b77d3b51e79b0a34d Committed: https://github.com/dart-lang/sdk/commit/e6793f76eefa14fff3ff4fa2870e826fbee1f959

Patch Set 1 #

Patch Set 2 : Fix issue with async method whose body becomes tree shaken, but not its interface #

Total comments: 4

Patch Set 3 : Address comments #

Patch Set 4 : Update status file for test that now passes for the wrong reason #

Patch Set 5 : Revert+Unrevert, and update status files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -68 lines) Patch
M pkg/kernel/lib/class_hierarchy.dart View 2 chunks +41 lines, -5 lines 0 comments Download
M pkg/kernel/lib/core_types.dart View 2 chunks +3 lines, -1 line 0 comments Download
M pkg/kernel/lib/target/vm.dart View 2 chunks +8 lines, -2 lines 0 comments Download
M pkg/kernel/lib/transformations/treeshaker.dart View 1 2 23 chunks +242 lines, -40 lines 0 comments Download
M pkg/kernel/test/treeshaker_bench.dart View 4 chunks +11 lines, -5 lines 0 comments Download
M pkg/kernel/test/treeshaker_dump.dart View 4 chunks +7 lines, -4 lines 0 comments Download
M pkg/kernel/test/treeshaker_membench.dart View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M tests/co19/co19-kernel.status View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M tests/language/language_kernel.status View 1 2 3 4 5 chunks +5 lines, -4 lines 0 comments Download
A tests/language_strong/unused_overridden_async_test.dart View 1 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
asgerf
3 years, 11 months ago (2017-01-11 16:11:44 UTC) #2
asgerf
Ping
3 years, 11 months ago (2017-01-19 11:14:45 UTC) #3
Kevin Millikin (Google)
LGTM. https://codereview.chromium.org/2627723003/diff/20001/pkg/kernel/lib/transformations/treeshaker.dart File pkg/kernel/lib/transformations/treeshaker.dart (right): https://codereview.chromium.org/2627723003/diff/20001/pkg/kernel/lib/transformations/treeshaker.dart#newcode879 pkg/kernel/lib/transformations/treeshaker.dart:879: node.function.body = new InvalidStatement()..parent = node.function; Is there ...
3 years, 11 months ago (2017-01-19 11:40:20 UTC) #4
asgerf
https://codereview.chromium.org/2627723003/diff/20001/pkg/kernel/lib/transformations/treeshaker.dart File pkg/kernel/lib/transformations/treeshaker.dart (right): https://codereview.chromium.org/2627723003/diff/20001/pkg/kernel/lib/transformations/treeshaker.dart#newcode879 pkg/kernel/lib/transformations/treeshaker.dart:879: node.function.body = new InvalidStatement()..parent = node.function; On 2017/01/19 11:40:20, ...
3 years, 11 months ago (2017-01-19 11:46:31 UTC) #5
asgerf
Committed patchset #4 (id:60001) manually as 71efbad90c07bece4010162b77d3b51e79b0a34d (presubmit successful).
3 years, 11 months ago (2017-01-19 13:00:40 UTC) #7
asgerf
3 years, 11 months ago (2017-01-20 09:52:34 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
e6793f76eefa14fff3ff4fa2870e826fbee1f959 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698