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

Issue 8457005: convert isolates to use Future (Closed)

Created:
9 years, 1 month ago by mattsh
Modified:
9 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

convert isolates to use Future BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=1213

Patch Set 1 #

Patch Set 2 : fixed TestFramework.dart #

Total comments: 20

Patch Set 3 : fixed SendPort #

Patch Set 4 : fixed per code review #

Total comments: 7

Patch Set 5 : updated co19 #

Patch Set 6 : updated co19 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -61 lines) Patch
M client/samples/dartcombat/player.dart View 6 chunks +12 lines, -12 lines 0 comments Download
M client/samples/dartcombat/state.dart View 5 chunks +26 lines, -21 lines 0 comments Download
M compiler/lib/implementation/isolate.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M corelib/src/future.dart View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
M corelib/src/isolate.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M frog/lib/dom/html.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M frog/lib/isolate.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/lib/isolate.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M tests/isolate/src/MandelIsolateTest.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/src/MintMakerTest.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/src/Mixed2Test.dart View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M tests/isolate/src/TestFramework.dart View 1 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
mattsh
This changes Isolate.spawn to return a Future rather than a Promise, and changes the dartcombat ...
9 years, 1 month ago (2011-11-04 03:17:03 UTC) #1
Jacob
http://codereview.chromium.org/8457005/diff/2001/frog/lib/dom/html.dart File frog/lib/dom/html.dart (left): http://codereview.chromium.org/8457005/diff/2001/frog/lib/dom/html.dart#oldcode18712 frog/lib/dom/html.dart:18712: Element createElement([String tagName]); actually, i believe this file is ...
9 years, 1 month ago (2011-11-04 03:19:57 UTC) #2
Ben Laurie (Google)
Two main concerns: 1. The stub generator needs to be updated, too. 2. [addCompleteHandler] has ...
9 years, 1 month ago (2011-11-04 11:48:12 UTC) #3
Siggi Cherem (dart-lang)
I'd like if we can actually split this change in 2 - changing Isolate.spawn is ...
9 years, 1 month ago (2011-11-04 16:57:33 UTC) #4
mattsh
http://codereview.chromium.org/8457005/diff/2001/client/samples/dartcombat/state.dart File client/samples/dartcombat/state.dart (right): http://codereview.chromium.org/8457005/diff/2001/client/samples/dartcombat/state.dart#newcode147 client/samples/dartcombat/state.dart:147: res.then((int result) { On 2011/11/04 16:57:33, sigmund wrote: > ...
9 years, 1 month ago (2011-11-04 17:10:30 UTC) #5
Siggi Cherem (dart-lang)
lgtm Ben - I assume you are ok with progressively adding what we need (e.g. ...
9 years, 1 month ago (2011-11-04 17:35:28 UTC) #6
Ben Laurie (Google)
Siggi: if by "use cases" you mean stuff that currently uses Promise, then sure. http://codereview.chromium.org/8457005/diff/8003/client/samples/dartcombat/player.dart ...
9 years, 1 month ago (2011-11-04 17:54:46 UTC) #7
Ben Laurie (Google)
9 years, 1 month ago (2011-11-04 19:04:29 UTC) #8
http://codereview.chromium.org/8457005/diff/8003/tests/isolate/src/TestFramew...
File tests/isolate/src/TestFramework.dart (right):

http://codereview.chromium.org/8457005/diff/8003/tests/isolate/src/TestFramew...
tests/isolate/src/TestFramework.dart:182: }
I should point out that this changes behaviour in unchecked mode. Seems OK to
me, tho :-)

Powered by Google App Engine
This is Rietveld 408576698