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

Issue 22067002: Ignore unused classes when constructing set for deferred loading. (Closed)

Created:
7 years, 4 months ago by aam-me
Modified:
7 years, 4 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Ignore unused classes when constructing set for deferred loading. BUG=dartbug.com/11740 R=ahe@google.com Committed: https://code.google.com/p/dart/source/detail?r=25959

Patch Set 1 #

Total comments: 2

Patch Set 2 : Generalized solution by adding isLive method to ResolutionEnqueuer. #

Total comments: 1

Patch Set 3 : Cleaned up redundant code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -16 lines) Patch
M sdk/lib/_internal/compiler/implementation/deferred_load.dart View 1 2 1 chunk +12 lines, -10 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/enqueue.dart View 1 1 chunk +7 lines, -0 lines 0 comments Download
A + tests/compiler/dart2js_extra/deferred/deferred_unused_classes_test.dart View 1 1 chunk +10 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
aam-me
Hi Peter, dartbug.com/11740 is caused by cls.allSupertypes for unused top-level class TemplateBenchmark being null. I ...
7 years, 4 months ago (2013-08-04 02:02:39 UTC) #1
ahe
Nice detective work! https://chromiumcodereview.appspot.com/22067002/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://chromiumcodereview.appspot.com/22067002/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode157 sdk/lib/_internal/compiler/implementation/deferred_load.dart:157: if (cls.thisType != null) { I ...
7 years, 4 months ago (2013-08-06 16:00:34 UTC) #2
aam-me
Thanks, Peter! PTAL https://chromiumcodereview.appspot.com/22067002/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://chromiumcodereview.appspot.com/22067002/diff/1/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode157 sdk/lib/_internal/compiler/implementation/deferred_load.dart:157: if (cls.thisType != null) { Thanks, ...
7 years, 4 months ago (2013-08-07 03:20:42 UTC) #3
aam-me
Hello Peter, I apologize - I think my original Patch 2 got corrupted somehow as ...
7 years, 4 months ago (2013-08-08 03:29:25 UTC) #4
ahe
https://chromiumcodereview.appspot.com/22067002/diff/23001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://chromiumcodereview.appspot.com/22067002/diff/23001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode159 sdk/lib/_internal/compiler/implementation/deferred_load.dart:159: if (cls.thisType != null) { Can you revert this ...
7 years, 4 months ago (2013-08-08 11:36:51 UTC) #5
aam-me
Oh, gosh. Thanks! PTAL.
7 years, 4 months ago (2013-08-08 11:54:15 UTC) #6
ahe
LGTM, thank you!
7 years, 4 months ago (2013-08-08 12:02:25 UTC) #7
aam-me
7 years, 4 months ago (2013-08-09 01:56:21 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r25959 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698