| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class _CloseToken { | 5 class _CloseToken { |
| 6 /// This token is sent from [IsolateSink]s to [IsolateStream]s to ask them to | 6 /// This token is sent from [IsolateSink]s to [IsolateStream]s to ask them to |
| 7 /// close themselves. | 7 /// close themselves. |
| 8 const _CloseToken(); | 8 const _CloseToken(); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 ReceivePort _portInternal; | 180 ReceivePort _portInternal; |
| 181 | 181 |
| 182 patch class _Isolate { | 182 patch class _Isolate { |
| 183 /* patch */ static ReceivePort get port { | 183 /* patch */ static ReceivePort get port { |
| 184 if (_portInternal == null) { | 184 if (_portInternal == null) { |
| 185 _portInternal = _getPortInternal(); | 185 _portInternal = _getPortInternal(); |
| 186 } | 186 } |
| 187 return _portInternal; | 187 return _portInternal; |
| 188 } | 188 } |
| 189 | 189 |
| 190 /* patch */ static spawnFunction(void topLevelFunction(), | 190 /* patch */ static SendPort spawnFunction(void topLevelFunction(), |
| 191 [bool unhandledExceptionCallback(IsolateUnhandledException e)]) | 191 [bool unhandledExceptionCallback(IsolateUnhandledException e)]) |
| 192 native "isolate_spawnFunction"; | 192 native "isolate_spawnFunction"; |
| 193 | 193 |
| 194 /* patch */ static spawnUri(String uri) native "isolate_spawnUri"; | 194 /* patch */ static SendPort spawnUri(String uri) native "isolate_spawnUri"; |
| 195 } | 195 } |
| OLD | NEW |