| 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 patch class ReceivePort { | 5 patch class ReceivePort { |
| 6 /* patch */ factory ReceivePort() { | 6 /* patch */ factory ReceivePort() { |
| 7 return new _ReceivePortImpl(); | 7 return new _ReceivePortImpl(); |
| 8 } | 8 } |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 static _sendInternal(int sendId, int replyId, var message) | 109 static _sendInternal(int sendId, int replyId, var message) |
| 110 native "SendPortImpl_sendInternal_"; | 110 native "SendPortImpl_sendInternal_"; |
| 111 | 111 |
| 112 final int _id; | 112 final int _id; |
| 113 } | 113 } |
| 114 | 114 |
| 115 _getPortInternal() native "isolate_getPortInternal"; | 115 _getPortInternal() native "isolate_getPortInternal"; |
| 116 | 116 |
| 117 ReceivePort _portInternal; | 117 ReceivePort _portInternal; |
| 118 | 118 |
| 119 patch ReceivePort get port { | 119 patch class _Isolate { |
| 120 if (_portInternal == null) { | 120 /* patch */ static ReceivePort get port { |
| 121 _portInternal = _getPortInternal(); | 121 if (_portInternal == null) { |
| 122 _portInternal = _getPortInternal(); |
| 123 } |
| 124 return _portInternal; |
| 122 } | 125 } |
| 123 return _portInternal; | 126 |
| 127 /* patch */ static spawnFunction(void topLevelFunction()) native "isolate_spaw
nFunction"; |
| 128 |
| 129 /* patch */ static spawnUri(String uri) native "isolate_spawnUri"; |
| 124 } | 130 } |
| 125 | |
| 126 patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction"; | |
| 127 | |
| 128 patch spawnUri(String uri) native "isolate_spawnUri"; | |
| 129 | |
| OLD | NEW |