Chromium Code Reviews| 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..645d301ce95343db7cf8205d42a3648c5e5aba20 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. |
|
Johnni Winther
2013/01/11 11:39:09
This was what caused the need for the updated chec
|
| -patch ReceivePort get port { |
| - if (lazyPort == null) { |
| - lazyPort = new ReceivePort(); |
| +patch class _Isolate { |
| + patch static 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 static SendPort spawnFunction(void topLevelFunction(), |
| + [bool UnhandledExceptionCallback(IsolateUnhandledException e)]) { |
| + return IsolateNatives.spawnFunction(topLevelFunction); |
| + } |
| -patch SendPort spawnUri(String uri) { |
| - return IsolateNatives.spawn(null, uri, false); |
| + patch static SendPort spawnUri(String uri) { |
| + return IsolateNatives.spawn(null, uri, false); |
| + } |
| } |
| - |
| /** Default factory for receive ports. */ |
| patch class ReceivePort { |
| patch factory ReceivePort() { |