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

Issue 9691005: Implement spawnFunction from the new isolate api. (Closed)

Created:
8 years, 9 months ago by turnidge
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implement spawnFunction from the new isolate api. Still need to implement spawnUri, which will be the more difficult one. Committed: https://code.google.com/p/dart/source/detail?r=5441

Patch Set 1 #

Patch Set 2 : #

Total comments: 25

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -15 lines) Patch
M lib/isolate/isolate_api.dart View 1 2 3 4 1 chunk +6 lines, -0 lines 1 comment Download
M runtime/lib/isolate.cc View 1 2 3 4 5 3 chunks +218 lines, -6 lines 0 comments Download
M runtime/lib/isolate.dart View 1 2 1 chunk +12 lines, -5 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/dart_entry.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/dart_entry.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/exceptions.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 1 chunk +18 lines, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M runtime/vm/zone.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/zone.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M runtime/vm/zone_test.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
turnidge
8 years, 9 months ago (2012-03-12 20:10:24 UTC) #1
Siggi Cherem (dart-lang)
very exciting! https://chromiumcodereview.appspot.com/9691005/diff/3001/tests/isolate/isolate.status File tests/isolate/isolate.status (right): https://chromiumcodereview.appspot.com/9691005/diff/3001/tests/isolate/isolate.status#newcode13 tests/isolate/isolate.status:13: # *APIv2*: Skip # new api for ...
8 years, 9 months ago (2012-03-12 21:28:49 UTC) #2
turnidge
https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.cc#newcode512 runtime/lib/isolate.cc:512: // TODO(turnidge): Throw a different exception type here. Siggi ...
8 years, 9 months ago (2012-03-12 22:38:47 UTC) #3
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.cc#newcode503 runtime/lib/isolate.cc:503: if (ctx.num_variables() > 0) { is this check redundant ...
8 years, 9 months ago (2012-03-12 22:57:44 UTC) #4
siva
LGTM. We should also consider adding a VM unit test for the new spawn functionality ...
8 years, 9 months ago (2012-03-12 23:25:41 UTC) #5
Anton Muhin
DBQ https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.dart File runtime/lib/isolate.dart (right): https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.dart#newcode170 runtime/lib/isolate.dart:170: _spawnFunction(void topLevelFunction()) native "isolate_spawnFunction"; just curious. apparently something ...
8 years, 9 months ago (2012-03-13 15:52:10 UTC) #6
turnidge
Siva, I added a bunch of new files to the CL, so it is probably ...
8 years, 9 months ago (2012-03-13 18:13:48 UTC) #7
siva
LGTM https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://chromiumcodereview.appspot.com/9691005/diff/3001/runtime/lib/isolate.cc#newcode442 runtime/lib/isolate.cc:442: state->set_isolate(child_isolate); Since the callback is something that the ...
8 years, 9 months ago (2012-03-13 19:45:21 UTC) #8
turnidge
https://chromiumcodereview.appspot.com/9691005/diff/4005/lib/isolate/isolate_api.dart File lib/isolate/isolate_api.dart (right): https://chromiumcodereview.appspot.com/9691005/diff/4005/lib/isolate/isolate_api.dart#newcode9 lib/isolate/isolate_api.dart:9: } On 2012/03/13 19:45:21, asiva wrote: > By defining ...
8 years, 9 months ago (2012-03-13 21:23:37 UTC) #9
Siggi Cherem (dart-lang)
8 years, 9 months ago (2012-03-13 23:00:13 UTC) #10
lgtm

https://chromiumcodereview.appspot.com/9691005/diff/5017/lib/isolate/isolate_...
File lib/isolate/isolate_api.dart (right):

https://chromiumcodereview.appspot.com/9691005/diff/5017/lib/isolate/isolate_...
lib/isolate/isolate_api.dart:5: class IsolateSpawnException implements Exception
{
(nit): move this to the bottom, so that the top of this file contains the common
APIs that people will use. 
also + a 1-line comment so that it gets documented for api.dartlang.com

Powered by Google App Engine
This is Rietveld 408576698