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

Issue 956953002: Support for a dart2js `dartDeferredLoader` hook. (Closed)

Created:
5 years, 10 months ago by sigurdm
Modified:
5 years, 8 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support for a dart2js `dartDeferredLoader` hook. Also move deferred loading special casing of d8 and jsshell to preambles. BUG= R=floitsch@google.com, lrn@google.com Committed: https://code.google.com/p/dart/source/detail?r=44163

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address review comments #

Patch Set 3 : Fix text in pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -77 lines) Patch
M pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/js_helper.dart View 2 chunks +57 lines, -73 lines 2 comments Download
M sdk/lib/_internal/compiler/js_lib/preambles/d8.js View 1 3 chunks +12 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/js_lib/preambles/jsshell.js View 1 2 chunks +21 lines, -2 lines 0 comments Download
M tests/language/deferred_static_seperate_test.dart View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
sigurdm
There is a problem with a csp-mode test failing. I think it should not have ...
5 years, 10 months ago (2015-02-25 15:34:59 UTC) #2
floitsch
LGTM, but wait for Lasse. https://codereview.chromium.org/956953002/diff/1/sdk/lib/_internal/compiler/js_lib/preambles/d8.js File sdk/lib/_internal/compiler/js_lib/preambles/d8.js (right): https://codereview.chromium.org/956953002/diff/1/sdk/lib/_internal/compiler/js_lib/preambles/d8.js#newcode282 sdk/lib/_internal/compiler/js_lib/preambles/d8.js:282: self.self = self; Create ...
5 years, 10 months ago (2015-02-25 16:00:00 UTC) #4
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/956953002/diff/1/pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart File pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart (right): https://codereview.chromium.org/956953002/diff/1/pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart#newcode63 pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart:63: // is loaded. It should load and eval ...
5 years, 10 months ago (2015-02-26 08:44:09 UTC) #5
sigurdm
https://codereview.chromium.org/956953002/diff/1/pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart File pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart (right): https://codereview.chromium.org/956953002/diff/1/pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart#newcode63 pkg/compiler/lib/src/js_emitter/old_emitter/declarations.dart:63: // is loaded. It should load and eval the ...
5 years, 10 months ago (2015-02-26 13:19:05 UTC) #6
sigurdm
Committed patchset #3 (id:40001) manually as 44163 (presubmit successful).
5 years, 9 months ago (2015-03-03 10:12:21 UTC) #7
sra1
https://chromiumcodereview.appspot.com/956953002/diff/40001/sdk/lib/_internal/compiler/js_lib/js_helper.dart File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right): https://chromiumcodereview.appspot.com/956953002/diff/40001/sdk/lib/_internal/compiler/js_lib/js_helper.dart#newcode3499 sdk/lib/_internal/compiler/js_lib/js_helper.dart:3499: var xhr = JS('dynamic', 'new XMLHttpRequest()'); Don't use dynamic ...
5 years, 8 months ago (2015-04-16 17:23:04 UTC) #9
sigurdm
5 years, 8 months ago (2015-04-17 08:37:37 UTC) #10
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/956953002/diff/40001/sdk/lib/_internal...
File sdk/lib/_internal/compiler/js_lib/js_helper.dart (right):

https://chromiumcodereview.appspot.com/956953002/diff/40001/sdk/lib/_internal...
sdk/lib/_internal/compiler/js_lib/js_helper.dart:3499: var xhr = JS('dynamic',
'new XMLHttpRequest()');
On 2015/04/16 17:23:04, sra1 wrote:
> Don't use dynamic here.
> Use '' or 'var'.
> 
> 'dynamic' means all possible types from dart:html.
> 'var', which is not a type, means 'trust me this is nothing interesting'.
> 
> 'dynamic' can cause quite a lot of bloat as recently seen by customers.

Acknowledged. It seems you already made the change.

Powered by Google App Engine
This is Rietveld 408576698