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

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

Issue 2312553002: Converted Observatory debugger elements (Closed)
Patch Set: Sharing command history and console Created 4 years, 3 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 2995 matching lines...) Expand 10 before | Expand all | Expand 10 after
3006 void _update(ObservableMap map, bool mapIsRef) { 3006 void _update(ObservableMap map, bool mapIsRef) {
3007 // Extract full properties. 3007 // Extract full properties.
3008 _upgradeCollection(map, isolate); 3008 _upgradeCollection(map, isolate);
3009 3009
3010 kind = stringToSentinelKind(map['kind']); 3010 kind = stringToSentinelKind(map['kind']);
3011 valueAsString = map['valueAsString']; 3011 valueAsString = map['valueAsString'];
3012 _loaded = true; 3012 _loaded = true;
3013 } 3013 }
3014 3014
3015 String toString() => 'Sentinel($kind)'; 3015 String toString() => 'Sentinel($kind)';
3016 String get shortName => valueAsString;
3016 } 3017 }
3017 3018
3018 class Field extends HeapObject implements M.Field { 3019 class Field extends HeapObject implements M.Field {
3019 // Library or Class. 3020 // Library or Class.
3020 @observable HeapObject dartOwner; 3021 @observable HeapObject dartOwner;
3021 @observable Library library; 3022 @observable Library library;
3022 @observable Instance declaredType; 3023 @observable Instance declaredType;
3023 @observable bool isStatic; 3024 @observable bool isStatic;
3024 @observable bool isFinal; 3025 @observable bool isFinal;
3025 @observable bool isConst; 3026 @observable bool isConst;
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
4392 var v = list[i]; 4393 var v = list[i];
4393 if ((v is ObservableMap) && _isServiceMap(v)) { 4394 if ((v is ObservableMap) && _isServiceMap(v)) {
4394 list[i] = owner.getFromMap(v); 4395 list[i] = owner.getFromMap(v);
4395 } else if (v is ObservableList) { 4396 } else if (v is ObservableList) {
4396 _upgradeObservableList(v, owner); 4397 _upgradeObservableList(v, owner);
4397 } else if (v is ObservableMap) { 4398 } else if (v is ObservableMap) {
4398 _upgradeObservableMap(v, owner); 4399 _upgradeObservableMap(v, owner);
4399 } 4400 }
4400 } 4401 }
4401 } 4402 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/helpers/any_ref.dart ('k') | runtime/observatory/observatory_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698