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

Unified Diff: runtime/lib/isolate.dart

Issue 10827436: Revert "Unify dart:isolate." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « lib/isolate/timer_hook.dart ('k') | runtime/lib/isolate_patch.dart » ('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_patch.dart b/runtime/lib/isolate.dart
similarity index 93%
rename from runtime/lib/isolate_patch.dart
rename to runtime/lib/isolate.dart
index 10f2c85f02231c92475f9546dd19dd35ddf92f5d..41c039cbe69b7caa79178f028a8266865dcdec13 100644
--- a/runtime/lib/isolate_patch.dart
+++ b/runtime/lib/isolate.dart
@@ -2,13 +2,15 @@
// 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.
-patch class _ReceivePortFactory {
- /* patch */ factory ReceivePort() {
+class _ReceivePortFactory {
+ factory ReceivePort() {
return new _ReceivePortImpl();
}
}
+
class _ReceivePortImpl implements ReceivePort {
+ /*--- public interface ---*/
factory _ReceivePortImpl() native "ReceivePortImpl_factory";
receive(void onMessage(var message, SendPort replyTo)) {
@@ -116,14 +118,13 @@ _getPortInternal() native "isolate_getPortInternal";
ReceivePort _portInternal;
-patch ReceivePort get port() {
+ReceivePort get _port() {
if (_portInternal === null) {
_portInternal = _getPortInternal();
}
return _portInternal;
}
-patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
-
-patch spawnUri(String uri) native "isolate_spawnUri";
+_spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
+_spawnUri(String uri) native "isolate_spawnUri";
« no previous file with comments | « lib/isolate/timer_hook.dart ('k') | runtime/lib/isolate_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698