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

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

Issue 293393005: Make methods on isolate external. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | sdk/lib/_internal/lib/isolate_patch.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import "dart:collection" show HashMap; 5 import "dart:collection" show HashMap;
6 6
7 patch class ReceivePort { 7 patch class ReceivePort {
8 /* patch */ factory ReceivePort() = _ReceivePortImpl; 8 /* patch */ factory ReceivePort() = _ReceivePortImpl;
9 9
10 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = 10 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) =
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 return completer.future; 267 return completer.future;
268 } 268 }
269 269
270 static final RawReceivePort _self = _mainPort; 270 static final RawReceivePort _self = _mainPort;
271 static RawReceivePort get _mainPort native "Isolate_mainPort"; 271 static RawReceivePort get _mainPort native "Isolate_mainPort";
272 272
273 static SendPort _spawnFunction(Function topLevelFunction) 273 static SendPort _spawnFunction(Function topLevelFunction)
274 native "Isolate_spawnFunction"; 274 native "Isolate_spawnFunction";
275 275
276 static SendPort _spawnUri(String uri) native "Isolate_spawnUri"; 276 static SendPort _spawnUri(String uri) native "Isolate_spawnUri";
277
278 /* patch */ void _pause(Capability resumeCapability) {
279 throw new UnsupportedError("pause");
280 }
281
282 /* patch */ void resume(Capability resumeCapability) {
283 throw new UnsupportedError("resume");
284 }
285
286 /* patch */ void addOnExitListener(SendPort responsePort) {
287 throw new UnsupportedError("addOnExitListener");
288 }
289
290 /* patch */ void removeOnExitListener(SendPort responsePort) {
291 throw new UnsupportedError("removeOnExitListener");
292 }
293
294 /* patch */ void setErrorsFatal(bool errorsAreFatal) {
295 throw new UnsupportedError("setErrorsFatal");
296 }
297
298 /* patch */ void kill([int priority = BEFORE_NEXT_EVENT]) {
299 throw new UnsupportedError("kill");
300 }
301
302 /* patch */ void ping(SendPort responsePort, [int pingType = IMMEDIATE]) {
303 throw new UnsupportedError("ping");
304 }
305
306 /* patch */ void addErrorListener(SendPort port) {
307 throw new UnsupportedError("addErrorListener");
308 }
309
310 /* patch */ void removeErrorListener(SendPort port) {
311 throw new UnsupportedError("removeErrorListener");
312 }
277 } 313 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/isolate_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698