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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart

Issue 12040037: Fix issues 7069 and 7429. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix problem in analyze_all_test Created 7 years, 11 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
Index: sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
index a948a8311e4cf9044c309f611f48d2e84625890f..f3cf8184f61f4426ceb601baf458240c7bfc487f 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart
@@ -4,23 +4,24 @@
// Patch file for the dart:isolate library.
-patch ReceivePort get port {
- if (lazyPort == null) {
- lazyPort = new ReceivePort();
+patch class _Isolate {
+ patch ReceivePort get port {
+ if (lazyPort == null) {
+ lazyPort = new ReceivePort();
+ }
+ return lazyPort;
}
- return lazyPort;
-}
-patch SendPort spawnFunction(void topLevelFunction(),
- [bool UnhandledExceptionCallback(IsolateUnhandledException e)]) {
- return IsolateNatives.spawnFunction(topLevelFunction);
-}
+ patch SendPort spawnFunction(void topLevelFunction(),
+ [bool UnhandledExceptionCallback(IsolateUnhandledException e)]) {
+ return IsolateNatives.spawnFunction(topLevelFunction);
+ }
-patch SendPort spawnUri(String uri) {
- return IsolateNatives.spawn(null, uri, false);
+ patch SendPort spawnUri(String uri) {
+ return IsolateNatives.spawn(null, uri, false);
+ }
}
-
/** Default factory for receive ports. */
patch class ReceivePort {
patch factory ReceivePort() {

Powered by Google App Engine
This is Rietveld 408576698