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

Unified Diff: runtime/lib/isolate_patch.dart

Issue 11308154: Stream isolates. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Fixes and test. Created 8 years, 1 month 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
Index: runtime/lib/isolate_patch.dart
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
index 451b21956a11ccd260b6c49f2e25a36654157726..16319a903ddb79f542f61da86cab758d251ff61c 100644
--- a/runtime/lib/isolate_patch.dart
+++ b/runtime/lib/isolate_patch.dart
@@ -116,14 +116,15 @@ _getPortInternal() native "isolate_getPortInternal";
ReceivePort _portInternal;
-patch ReceivePort get port {
- if (_portInternal == null) {
- _portInternal = _getPortInternal();
+patch class _Isolate {
+ /* patch */ static ReceivePort get port {
+ if (_portInternal == null) {
+ _portInternal = _getPortInternal();
+ }
+ return _portInternal;
}
- return _portInternal;
-}
-patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
-
-patch spawnUri(String uri) native "isolate_spawnUri";
+ /* patch */ static spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
+ /* patch */ static spawnUri(String uri) native "isolate_spawnUri";
+}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart » ('j') | sdk/lib/isolate/base.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698