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

Issue 569583002: Make dart2js deferred loading work in cps mode. (Closed)

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

Description

Make dart2js deferred loading work in CSP mode. Still it will not work from a js-worker, because we use new Function to evaluate the script instead of injecting a script tag. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=40371

Patch Set 1 #

Total comments: 6

Patch Set 2 : Allow maps to be cleared (used from incremental compiler). Renames #

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -41 lines) Patch
M pkg/dart2js_incremental/lib/caching_compiler.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M samples/samples.status View 1 chunk +0 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart View 1 2 3 chunks +12 lines, -5 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart View 1 2 10 chunks +55 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/use_unused_api.dart View 1 3 chunks +7 lines, -0 lines 0 comments Download
M tests/compiler/dart2js_extra/dart2js_extra.status View 1 chunk +0 lines, -8 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +0 lines, -5 lines 0 comments Download
M tests/lib/lib.status View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
sigurdm
6 years, 3 months ago (2014-09-12 13:09:33 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/569583002/diff/1/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart File sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart (right): https://codereview.chromium.org/569583002/diff/1/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart#newcode134 sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:134: List<jsAst.Node> precompiledFunction(OutputUnit outputUnit) { precompiledFunctionsFor https://codereview.chromium.org/569583002/diff/1/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart#newcode139 sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:139: List<jsAst.Expression> ...
6 years, 3 months ago (2014-09-12 17:00:18 UTC) #3
sigurdm
https://codereview.chromium.org/569583002/diff/1/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart File sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart (right): https://codereview.chromium.org/569583002/diff/1/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart#newcode134 sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart:134: List<jsAst.Node> precompiledFunction(OutputUnit outputUnit) { On 2014/09/12 17:00:18, floitsch wrote: ...
6 years, 3 months ago (2014-09-15 13:10:48 UTC) #4
ahe
Updated the description, as my understanding is that this CL is about Content Security Policy, ...
6 years, 3 months ago (2014-09-15 13:44:56 UTC) #6
sigurdm
Thanks, I'm afraid it won't be the last time I make that mistake.
6 years, 3 months ago (2014-09-16 09:30:09 UTC) #7
sigurdm
6 years, 3 months ago (2014-09-17 12:22:52 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 40371 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698