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

Issue 11778064: Cleanup the isolate library to pave the way for web worker support. (Closed)

Created:
7 years, 11 months ago by ngeoffray
Modified:
7 years, 11 months ago
Reviewers:
erikcorry, floitsch, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Cleanup the isolate library to pave the way for web worker support. Committed: https://code.google.com/p/dart/source/detail?r=16911

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -97 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 2 3 1 chunk +2 lines, -23 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart View 1 2 3 2 chunks +13 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart View 1 2 3 22 chunks +91 lines, -60 lines 3 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 1 2 3 1 chunk +14 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
A + tests/compiler/dart2js_extra/isolate2_negative_test.dart View 2 chunks +3 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ngeoffray
This is another try for https://codereview.chromium.org/11574032/, so most of the code has been reviewed. The ...
7 years, 11 months ago (2013-01-09 13:42:02 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/11778064/diff/1/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart File sdk/lib/_internal/compiler/implementation/lib/js_helper.dart (right): https://codereview.chromium.org/11778064/diff/1/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart#newcode1150 sdk/lib/_internal/compiler/implementation/lib/js_helper.dart:1150: // the current isolate may have changed so ...
7 years, 11 months ago (2013-01-09 14:53:14 UTC) #2
ngeoffray
Thanks Florian, PTAL, there is actually a test for non resolved ports, so I'm dealing ...
7 years, 11 months ago (2013-01-09 16:32:24 UTC) #3
floitsch
LGTM. https://codereview.chromium.org/11778064/diff/12/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (right): https://codereview.chromium.org/11778064/diff/12/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart#newcode441 sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart:441: // TODO(7795): Clean this up when we handler ...
7 years, 11 months ago (2013-01-09 17:42:58 UTC) #4
ngeoffray
Thanks Florian! https://codereview.chromium.org/11778064/diff/12/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (right): https://codereview.chromium.org/11778064/diff/12/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart#newcode441 sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart:441: // TODO(7795): Clean this up when we ...
7 years, 11 months ago (2013-01-10 09:16:56 UTC) #5
ngeoffray
On 2013/01/10 09:16:56, ngeoffray wrote: > Thanks Florian! > > https://codereview.chromium.org/11778064/diff/12/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart > File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (right): ...
7 years, 11 months ago (2013-01-10 10:44:35 UTC) #6
erikcorry
Unfortunately, this change broke minified mode in dart2js, as tested with: ./tools/test.py -mrelease -cdart2js -rd8 ...
7 years, 11 months ago (2013-01-16 09:21:36 UTC) #7
floitsch
7 years, 11 months ago (2013-01-16 09:42:16 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/11778064/diff/5013/sdk/lib/_internal/compiler...
File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (right):

https://codereview.chromium.org/11778064/diff/5013/sdk/lib/_internal/compiler...
sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart:384: var
globalWindow = JS('', "#['window']", globalThis);
On 2013/01/16 09:21:36, erikcorry wrote:
> I think it would be more idiomatic and more compact to write #.window instead
of
> #['window'].

Only if we can guarantee that "globalThis" is not an arbitrary expression.

Powered by Google App Engine
This is Rietveld 408576698