| 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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 return result; | 1373 return result; |
| 1374 }); | 1374 }); |
| 1375 } | 1375 } |
| 1376 | 1376 |
| 1377 void _handleIsolateReloadEvent(ServiceEvent event) { | 1377 void _handleIsolateReloadEvent(ServiceEvent event) { |
| 1378 if (event.reloadError == null) { | 1378 if (event.reloadError == null) { |
| 1379 _cache.clear(); | 1379 _cache.clear(); |
| 1380 } | 1380 } |
| 1381 } | 1381 } |
| 1382 | 1382 |
| 1383 Future collectAllGarbage() { |
| 1384 return invokeRpc('_collectAllGarbage', {}); |
| 1385 } |
| 1386 |
| 1383 /// Fetches and builds the class hierarchy for this isolate. Returns the | 1387 /// Fetches and builds the class hierarchy for this isolate. Returns the |
| 1384 /// Object class object. | 1388 /// Object class object. |
| 1385 Future<Class> getClassHierarchy() { | 1389 Future<Class> getClassHierarchy() { |
| 1386 return invokeRpc('getClassList', {}) | 1390 return invokeRpc('getClassList', {}) |
| 1387 .then(_loadClasses) | 1391 .then(_loadClasses) |
| 1388 .then(_buildClassHierarchy); | 1392 .then(_buildClassHierarchy); |
| 1389 } | 1393 } |
| 1390 | 1394 |
| 1391 Future<ServiceObject> getPorts() { | 1395 Future<ServiceObject> getPorts() { |
| 1392 return invokeRpc('_getPorts', {}); | 1396 return invokeRpc('_getPorts', {}); |
| (...skipping 3251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4644 var v = list[i]; | 4648 var v = list[i]; |
| 4645 if ((v is Map) && _isServiceMap(v)) { | 4649 if ((v is Map) && _isServiceMap(v)) { |
| 4646 list[i] = owner.getFromMap(v); | 4650 list[i] = owner.getFromMap(v); |
| 4647 } else if (v is List) { | 4651 } else if (v is List) { |
| 4648 _upgradeList(v, owner); | 4652 _upgradeList(v, owner); |
| 4649 } else if (v is Map) { | 4653 } else if (v is Map) { |
| 4650 _upgradeMap(v, owner); | 4654 _upgradeMap(v, owner); |
| 4651 } | 4655 } |
| 4652 } | 4656 } |
| 4653 } | 4657 } |
| OLD | NEW |