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

Side by Side Diff: runtime/lib/isolate.dart

Issue 9521007: isolates: remove Isolate2 interface, add top-level spawn functions, more comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/isolate/isolate_frog.dart ('k') | tests/isolate/src/APIv2_spawnBrowserNegativeTest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class _ReceivePortFactory { 5 class _ReceivePortFactory {
6 factory ReceivePort() { 6 factory ReceivePort() {
7 return new _ReceivePortImpl(); 7 return new _ReceivePortImpl();
8 } 8 }
9 9
10 factory ReceivePort.singleShot() { 10 factory ReceivePort.singleShot() {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 148 }
149 149
150 // Starts a new isolate calling the run method on a new instance of the 150 // Starts a new isolate calling the run method on a new instance of the
151 // remote class's type. 151 // remote class's type.
152 // Returns the send port which is passed to the newly created isolate. 152 // Returns the send port which is passed to the newly created isolate.
153 // This method is being dispatched to from the public core library code. 153 // This method is being dispatched to from the public core library code.
154 static SendPort _start(Isolate isolate, bool light) 154 static SendPort _start(Isolate isolate, bool light)
155 native "IsolateNatives_start"; 155 native "IsolateNatives_start";
156 } 156 }
157 157
158 class _IsolateFactory { 158 // TODO(sigmund,turnidge): implement
159 159
160 factory Isolate2.fromCode(Function topLevelFunction) { 160 SendPort _spawnFunction(void topLevelFunction()) {
161 throw new NotImplementedException(); 161 throw new NotImplementedException();
162 } 162 }
163 163
164 factory Isolate2.fromUri(String uri) { 164 SendPort _spawnUri(String uri) {
165 throw new NotImplementedException(); 165 throw new NotImplementedException();
166 }
167 } 166 }
167
168 ReceivePort _port = null;
OLDNEW
« no previous file with comments | « lib/isolate/isolate_frog.dart ('k') | tests/isolate/src/APIv2_spawnBrowserNegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698