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

Issue 11553024: Support web workers in dart2js. (Closed)

Created:
8 years ago by ngeoffray
Modified:
8 years ago
Reviewers:
ahe, floitsch, kasperl
CC:
reviews_dartlang.org, Johnni Winther, floitsch
Visibility:
Public.

Description

Support web workers in dart2js. Committed: https://code.google.com/p/dart/source/detail?r=16155

Patch Set 1 : #

Total comments: 18

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 24

Patch Set 5 : #

Total comments: 1

Messages

Total messages: 10 (0 generated)
ngeoffray
https://codereview.chromium.org/11553024/diff/4002/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (left): https://codereview.chromium.org/11553024/diff/4002/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart#oldcode8 sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart:8: import 'dart:uri'; For probably bootstrapping problems, having this import ...
8 years ago (2012-12-12 15:37:21 UTC) #1
kasperl
LGTM. https://codereview.chromium.org/11553024/diff/4002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (left): https://codereview.chromium.org/11553024/diff/4002/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart#oldcode1791 sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart:1791: // TODO(ngeoffray): These globals are currently required by ...
8 years ago (2012-12-13 08:45:11 UTC) #2
ngeoffray
Thanks Kasper. https://codereview.chromium.org/11553024/diff/4002/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (right): https://codereview.chromium.org/11553024/diff/4002/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart#newcode167 sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart:167: || (isWorkerDefined && IsolateNatives._thisScript != null); On ...
8 years ago (2012-12-13 11:56:13 UTC) #3
floitsch
dbc. https://codereview.chromium.org/11553024/diff/16002/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart File sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart (right): https://codereview.chromium.org/11553024/diff/16002/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart#newcode16 sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart:16: * Return [:true:] if [object] has its own ...
8 years ago (2012-12-13 13:06:38 UTC) #4
ngeoffray
Thanks Florian. Florian and Kasper, PTAL at patchset #4. I needed to fix some code ...
8 years ago (2012-12-13 16:03:53 UTC) #5
kasperl
I think we need to work a bit more on the close down sequence. https://codereview.chromium.org/11553024/diff/13007/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart ...
8 years ago (2012-12-14 08:16:35 UTC) #6
ahe
LGTM except for sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart. I don't understand that file, but I think you have other ...
8 years ago (2012-12-14 08:33:31 UTC) #7
kasperl
Hmm. I hope we figured something out here. I'd argue that renaming globalState to isolateState ...
8 years ago (2012-12-14 08:47:23 UTC) #8
ngeoffray
Thanks Peter and Kasper. https://codereview.chromium.org/11553024/diff/13007/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (right): https://codereview.chromium.org/11553024/diff/13007/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart#newcode43 sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart:43: // by having a "default" ...
8 years ago (2012-12-14 09:13:16 UTC) #9
floitsch
8 years ago (2012-12-14 10:25:27 UTC) #10
Message was sent while issue was closed.
dbc.

https://codereview.chromium.org/11553024/diff/17014/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart (right):

https://codereview.chromium.org/11553024/diff/17014/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart:384: JS('',
"#['postMessage'] !== (void 0)", globalThis);
You could add a type to the JS.

Powered by Google App Engine
This is Rietveld 408576698