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

Issue 221663005: Load deferred chunks in the right order. (Closed)

Created:
6 years, 8 months ago by sigurdm
Modified:
6 years, 8 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Load deferred chunks in the right order. A chunk can depend on classes in shared chunks. Therefore sort they are sorted, and loaded sequentially. BUG= dartbug.com/17890 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=34698 Reverted: r34702 Committed: https://code.google.com/p/dart/source/detail?r=34915

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -137 lines) Patch
M runtime/lib/deferred_load_patch.dart View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/deferred_load.dart View 1 2 3 4 3 chunks +34 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart View 1 2 3 1 chunk +12 lines, -7 lines 0 comments Download
M sdk/lib/_internal/lib/async_patch.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/lib/js_helper.dart View 1 2 3 4 5 chunks +23 lines, -28 lines 0 comments Download
M sdk/lib/async/deferred_load.dart View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart View 1 chunk +25 lines, -13 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_class_test.dart View 2 chunks +2 lines, -4 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_constant3_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_constant4_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M tests/compiler/dart2js_extra/deferred/deferred_function_test.dart View 2 chunks +2 lines, -4 lines 0 comments Download
A + tests/compiler/dart2js_extra/deferred/deferred_overlapping_lib1.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A + tests/compiler/dart2js_extra/deferred/deferred_overlapping_lib2.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A + tests/compiler/dart2js_extra/deferred/deferred_overlapping_lib3.dart View 1 chunk +1 line, -1 line 0 comments Download
A tests/compiler/dart2js_extra/deferred/deferred_overlapping_test.dart View 1 chunk +18 lines, -0 lines 0 comments Download
D tests/lib/async/deferred/deferred_api_library.dart View 1 chunk +0 lines, -12 lines 0 comments Download
D tests/lib/async/deferred/deferred_api_test.dart View 1 chunk +0 lines, -38 lines 0 comments Download
M tests/lib/async/deferred/deferred_fail_to_load_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/async/deferred/deferred_in_isolate_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/lib/async/deferred/deferred_library.dart View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
sigurdm
6 years, 8 months ago (2014-04-02 07:56:20 UTC) #1
floitsch
LGTM with comments. Also: it's easy to keep the boolean return value: forEach(...).then((_) => true) ...
6 years, 8 months ago (2014-04-02 09:32:48 UTC) #2
sigurdm
> Also: it's easy to keep the boolean return value: forEach(...).then((_) => true) Yes that ...
6 years, 8 months ago (2014-04-02 11:25:30 UTC) #3
sigurdm
6 years, 8 months ago (2014-04-03 07:54:29 UTC) #4
sigurdm
6 years, 8 months ago (2014-04-03 08:49:05 UTC) #5
floitsch
Almost LGTM. https://codereview.chromium.org/221663005/diff/80001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/221663005/diff/80001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode643 sdk/lib/_internal/compiler/implementation/deferred_load.dart:643: // Assuming class C in output unit ...
6 years, 8 months ago (2014-04-03 09:05:19 UTC) #6
floitsch
Please look at the output to verify that we generate compact JS. On 2014/04/03 09:05:19, ...
6 years, 8 months ago (2014-04-03 09:05:42 UTC) #7
sigurdm
https://codereview.chromium.org/221663005/diff/80001/sdk/lib/_internal/compiler/implementation/deferred_load.dart File sdk/lib/_internal/compiler/implementation/deferred_load.dart (right): https://codereview.chromium.org/221663005/diff/80001/sdk/lib/_internal/compiler/implementation/deferred_load.dart#newcode643 sdk/lib/_internal/compiler/implementation/deferred_load.dart:643: // Assuming class C in output unit shared by ...
6 years, 8 months ago (2014-04-03 09:44:50 UTC) #8
sigurdm
Committed patchset #5 manually as r34698 (presubmit successful).
6 years, 8 months ago (2014-04-03 12:15:48 UTC) #9
sigurdm
6 years, 8 months ago (2014-04-04 08:29:01 UTC) #10
floitsch
Please make it clearer what changed after the last revert. If it's just the change ...
6 years, 8 months ago (2014-04-04 11:12:42 UTC) #11
sigurdm
6 years, 8 months ago (2014-04-10 08:48:35 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 manually as r34915 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698