OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of "dart:_vmservice"; | 5 part of "vmservice.dart"; |
6 | 6 |
7 class RunningIsolates implements MessageRouter { | 7 class RunningIsolates implements MessageRouter { |
8 final Map<int, RunningIsolate> isolates = new Map<int, RunningIsolate>(); | 8 final Map<int, RunningIsolate> isolates = new Map<int, RunningIsolate>(); |
9 int _rootPortId; | 9 int _rootPortId; |
10 | 10 |
11 RunningIsolates(); | 11 RunningIsolates(); |
12 | 12 |
13 void isolateStartup(int portId, SendPort sp, String name) { | 13 void isolateStartup(int portId, SendPort sp, String name) { |
14 if (_rootPortId == null) { | 14 if (_rootPortId == null) { |
15 _rootPortId = portId; | 15 _rootPortId = portId; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 'type': 'Sentinel', | 53 'type': 'Sentinel', |
54 'kind': 'Collected', | 54 'kind': 'Collected', |
55 'valueAsString': '<collected>', | 55 'valueAsString': '<collected>', |
56 }; | 56 }; |
57 message.setResponse(encodeResult(message, result)); | 57 message.setResponse(encodeResult(message, result)); |
58 return message.response; | 58 return message.response; |
59 } | 59 } |
60 return isolate.route(message); | 60 return isolate.route(message); |
61 } | 61 } |
62 } | 62 } |
OLD | NEW |