| 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 /** Common functionality to all send ports. */ | 5 /** Common functionality to all send ports. */ |
| 6 class _BaseSendPort implements SendPort { | 6 class _BaseSendPort implements SendPort { |
| 7 /** Id for the destination isolate. */ | 7 /** Id for the destination isolate. */ |
| 8 final int _isolateId; | 8 final int _isolateId; |
| 9 | 9 |
| 10 const _BaseSendPort(this._isolateId); | 10 const _BaseSendPort(this._isolateId); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // map.getValues().forEach(_dispatch); | 244 // map.getValues().forEach(_dispatch); |
| 245 map.getValues().forEach((e) => _dispatch(e)); | 245 map.getValues().forEach((e) => _dispatch(e)); |
| 246 } | 246 } |
| 247 | 247 |
| 248 visitSendPort(SendPort port) { | 248 visitSendPort(SendPort port) { |
| 249 if (port is _BufferingSendPort && port._port == null) { | 249 if (port is _BufferingSendPort && port._port == null) { |
| 250 ports.add(port._futurePort); | 250 ports.add(port._futurePort); |
| 251 } | 251 } |
| 252 } | 252 } |
| 253 } | 253 } |
| OLD | NEW |