| 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 /// The owner of this [ServiceObject]. This can be an [Isolate], a | 10 /// The owner of this [ServiceObject]. This can be an [Isolate], a |
| (...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 oldSpace.update(allocationStats['old']); | 1116 oldSpace.update(allocationStats['old']); |
| 1117 } | 1117 } |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 void _addToChildren(Class cls) { | 1120 void _addToChildren(Class cls) { |
| 1121 if (children.contains(cls)) { | 1121 if (children.contains(cls)) { |
| 1122 return; | 1122 return; |
| 1123 } | 1123 } |
| 1124 children.add(cls); | 1124 children.add(cls); |
| 1125 } | 1125 } |
| 1126 |
| 1127 Future<ServiceObject> get(String command) { |
| 1128 return isolate.get(id + "/$command"); |
| 1129 } |
| 1126 } | 1130 } |
| 1127 | 1131 |
| 1128 class ScriptLine extends Observable { | 1132 class ScriptLine extends Observable { |
| 1129 final int line; | 1133 final int line; |
| 1130 final String text; | 1134 final String text; |
| 1131 @observable int hits; | 1135 @observable int hits; |
| 1132 ScriptLine(this.line, this.text); | 1136 ScriptLine(this.line, this.text); |
| 1133 } | 1137 } |
| 1134 | 1138 |
| 1135 class Script extends ServiceObject { | 1139 class Script extends ServiceObject { |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 var v = list[i]; | 1824 var v = list[i]; |
| 1821 if ((v is ObservableMap) && _isServiceMap(v)) { | 1825 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 1822 list[i] = owner.getFromMap(v); | 1826 list[i] = owner.getFromMap(v); |
| 1823 } else if (v is ObservableList) { | 1827 } else if (v is ObservableList) { |
| 1824 _upgradeObservableList(v, owner); | 1828 _upgradeObservableList(v, owner); |
| 1825 } else if (v is ObservableMap) { | 1829 } else if (v is ObservableMap) { |
| 1826 _upgradeObservableMap(v, owner); | 1830 _upgradeObservableMap(v, owner); |
| 1827 } | 1831 } |
| 1828 } | 1832 } |
| 1829 } | 1833 } |
| OLD | NEW |