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

Unified Diff: runtime/lib/isolate.dart

Issue 10837070: Remove old isolate API and update all code in the repository to use (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate.dart
diff --git a/runtime/lib/isolate.dart b/runtime/lib/isolate.dart
index f98ffda5169f3f7074b5a64fa6d3d7b562bd0ab8..41c039cbe69b7caa79178f028a8266865dcdec13 100644
--- a/runtime/lib/isolate.dart
+++ b/runtime/lib/isolate.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -114,22 +114,6 @@ class _SendPortImpl implements SendPort {
final int _id;
}
-class _IsolateNatives {
- static Future<SendPort> spawn(Isolate isolate, bool isLight) {
- Completer<SendPort> completer = new Completer<SendPort>();
- SendPort port = _start(isolate, isLight);
- completer.complete(port);
- return completer.future;
- }
-
- // Starts a new isolate calling the run method on a new instance of the
- // remote class's type.
- // Returns the send port which is passed to the newly created isolate.
- // This method is being dispatched to from the public core library code.
- static SendPort _start(Isolate isolate, bool light)
- native "IsolateNatives_start";
-}
-
_getPortInternal() native "isolate_getPortInternal";
ReceivePort _portInternal;
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698