OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 service; | 5 part of service; |
6 | 6 |
7 /// A [ServiceObject] is an object known to the VM service and is tied | 7 /// A [ServiceObject] is an object known to the VM service and is tied |
8 /// to an owning [Isolate]. | 8 /// to an owning [Isolate]. |
9 abstract class ServiceObject extends Observable { | 9 abstract class ServiceObject extends Observable { |
10 Isolate _isolate; | 10 Isolate _isolate; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 vm.isolates.update(m); | 176 vm.isolates.update(m); |
177 return vm.isolates; | 177 return vm.isolates; |
178 case 'Script': | 178 case 'Script': |
179 return isolate.scripts.putIfAbsent(m); | 179 return isolate.scripts.putIfAbsent(m); |
180 case 'Code': | 180 case 'Code': |
181 return isolate.codes.putIfAbsent(m); | 181 return isolate.codes.putIfAbsent(m); |
182 case 'Isolate': | 182 case 'Isolate': |
183 return vm.isolates.getIsolateFromMap(m); | 183 return vm.isolates.getIsolateFromMap(m); |
184 case 'Class': | 184 case 'Class': |
185 return isolate.classes.putIfAbsent(m); | 185 return isolate.classes.putIfAbsent(m); |
| 186 case 'Function': |
| 187 return isolate.functions.putIfAbsent(m); |
186 } | 188 } |
187 return new ServiceMap.fromMap(isolate, m); | 189 return new ServiceMap.fromMap(isolate, m); |
188 } | 190 } |
OLD | NEW |