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 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
9 // object ring. | 9 // object ring. |
10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 Future<Class> getClassHierarchy() { | 1186 Future<Class> getClassHierarchy() { |
1187 return invokeRpc('getClassList', {}) | 1187 return invokeRpc('getClassList', {}) |
1188 .then(_loadClasses) | 1188 .then(_loadClasses) |
1189 .then(_buildClassHierarchy); | 1189 .then(_buildClassHierarchy); |
1190 } | 1190 } |
1191 | 1191 |
1192 Future<ServiceObject> getPorts() { | 1192 Future<ServiceObject> getPorts() { |
1193 return invokeRpc('_getPorts', {}); | 1193 return invokeRpc('_getPorts', {}); |
1194 } | 1194 } |
1195 | 1195 |
| 1196 Future<ServiceObject> getPersistentHandles() { |
| 1197 return invokeRpc('_getPersistentHandles', {}); |
| 1198 } |
| 1199 |
1196 Future<List<Class>> getClassRefs() async { | 1200 Future<List<Class>> getClassRefs() async { |
1197 ServiceMap classList = await invokeRpc('getClassList', {}); | 1201 ServiceMap classList = await invokeRpc('getClassList', {}); |
1198 assert(classList.type == 'ClassList'); | 1202 assert(classList.type == 'ClassList'); |
1199 var classRefs = []; | 1203 var classRefs = []; |
1200 for (var cls in classList['classes']) { | 1204 for (var cls in classList['classes']) { |
1201 // Skip over non-class classes. | 1205 // Skip over non-class classes. |
1202 if (cls is Class) { | 1206 if (cls is Class) { |
1203 _classesByCid[cls.vmCid] = cls; | 1207 _classesByCid[cls.vmCid] = cls; |
1204 classRefs.add(cls); | 1208 classRefs.add(cls); |
1205 } | 1209 } |
(...skipping 2770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3976 var v = list[i]; | 3980 var v = list[i]; |
3977 if ((v is ObservableMap) && _isServiceMap(v)) { | 3981 if ((v is ObservableMap) && _isServiceMap(v)) { |
3978 list[i] = owner.getFromMap(v); | 3982 list[i] = owner.getFromMap(v); |
3979 } else if (v is ObservableList) { | 3983 } else if (v is ObservableList) { |
3980 _upgradeObservableList(v, owner); | 3984 _upgradeObservableList(v, owner); |
3981 } else if (v is ObservableMap) { | 3985 } else if (v is ObservableMap) { |
3982 _upgradeObservableMap(v, owner); | 3986 _upgradeObservableMap(v, owner); |
3983 } | 3987 } |
3984 } | 3988 } |
3985 } | 3989 } |
OLD | NEW |