Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 2759533002: Remove legacy restart code (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 }); 846 });
847 } 847 }
848 848
849 void _dispatchEventToIsolate(ServiceEvent event) { 849 void _dispatchEventToIsolate(ServiceEvent event) {
850 var isolate = event.isolate; 850 var isolate = event.isolate;
851 if (isolate != null) { 851 if (isolate != null) {
852 isolate._onEvent(event); 852 isolate._onEvent(event);
853 } 853 }
854 } 854 }
855 855
856 Future restart() {
857 return invokeRpc('_restartVM', {});
858 }
859
860 Future<Map> _fetchDirect({int count: kDefaultFieldLimit}) async { 856 Future<Map> _fetchDirect({int count: kDefaultFieldLimit}) async {
861 if (!loaded) { 857 if (!loaded) {
862 // The vm service relies on these events to keep the VM and 858 // The vm service relies on these events to keep the VM and
863 // Isolate types up to date. 859 // Isolate types up to date.
864 try { 860 try {
865 await listenEventStream(kVMStream, _dispatchEventToIsolate); 861 await listenEventStream(kVMStream, _dispatchEventToIsolate);
866 await listenEventStream(kIsolateStream, _dispatchEventToIsolate); 862 await listenEventStream(kIsolateStream, _dispatchEventToIsolate);
867 await listenEventStream(kDebugStream, _dispatchEventToIsolate); 863 await listenEventStream(kDebugStream, _dispatchEventToIsolate);
868 await listenEventStream(_kGraphStream, _dispatchEventToIsolate); 864 await listenEventStream(_kGraphStream, _dispatchEventToIsolate);
869 } on FakeVMRpcException catch (_) { 865 } on FakeVMRpcException catch (_) {
(...skipping 3759 matching lines...) Expand 10 before | Expand all | Expand 10 after
4629 var v = list[i]; 4625 var v = list[i];
4630 if ((v is Map) && _isServiceMap(v)) { 4626 if ((v is Map) && _isServiceMap(v)) {
4631 list[i] = owner.getFromMap(v); 4627 list[i] = owner.getFromMap(v);
4632 } else if (v is List) { 4628 } else if (v is List) {
4633 _upgradeList(v, owner); 4629 _upgradeList(v, owner);
4634 } else if (v is Map) { 4630 } else if (v is Map) {
4635 _upgradeMap(v, owner); 4631 _upgradeMap(v, owner);
4636 } 4632 }
4637 } 4633 }
4638 } 4634 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698