| 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 IsolateSpawnException implements Exception { | 5 class IsolateSpawnException implements Exception { |
| 6 const IsolateSpawnException(String this._s); | 6 const IsolateSpawnException(String this._s); |
| 7 String toString() => "IsolateSpawnException: '$_s'"; | 7 String toString() => "IsolateSpawnException: '$_s'"; |
| 8 final String _s; | 8 final String _s; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 // TODO(kasperl): Document this. | 139 // TODO(kasperl): Document this. |
| 140 abstract class SendPortSync { | 140 abstract class SendPortSync { |
| 141 | 141 |
| 142 callSync(var message); | 142 callSync(var message); |
| 143 | 143 |
| 144 } | 144 } |
| 145 | 145 |
| 146 // The VM doesn't support accessing external globals in the same library. We | 146 // The VM doesn't support accessing external globals in the same library. We |
| 147 // therefore create this wrapper class. | 147 // therefore create this wrapper class. |
| 148 // TODO(floitsch): add bug-number. | 148 // TODO(6997): Don't go through static class for external variables. |
| 149 abstract class _Isolate { | 149 abstract class _Isolate { |
| 150 external static ReceivePort get port; | 150 external static ReceivePort get port; |
| 151 external static SendPort spawnFunction(void topLevelFunction()); | 151 external static SendPort spawnFunction(void topLevelFunction()); |
| 152 external static SendPort spawnUri(String uri); | 152 external static SendPort spawnUri(String uri); |
| 153 } | 153 } |
| OLD | NEW |