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

Side by Side Diff: runtime/vm/object.cc

Issue 500093003: Remove service.Class.children, and (mostly) as a side-effect sort the class hierarchy view. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: build Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/service/object.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after
4168 functions_array.AddValue(function); 4168 functions_array.AddValue(function);
4169 } 4169 }
4170 } 4170 }
4171 } 4171 }
4172 { 4172 {
4173 JSONArray subclasses_array(&jsobj, "subclasses"); 4173 JSONArray subclasses_array(&jsobj, "subclasses");
4174 const GrowableObjectArray& subclasses = 4174 const GrowableObjectArray& subclasses =
4175 GrowableObjectArray::Handle(direct_subclasses()); 4175 GrowableObjectArray::Handle(direct_subclasses());
4176 if (!subclasses.IsNull()) { 4176 if (!subclasses.IsNull()) {
4177 Class& subclass = Class::Handle(); 4177 Class& subclass = Class::Handle();
4178 if (!subclasses.IsNull()) { 4178 for (intptr_t i = 0; i < subclasses.Length(); ++i) {
4179 for (intptr_t i = 0; i < subclasses.Length(); ++i) { 4179 // TODO(turnidge): Use the Type directly once regis has added
4180 // TODO(turnidge): Use the Type directly once regis has added 4180 // types to the vmservice.
4181 // types to the vmservice. 4181 subclass ^= subclasses.At(i);
4182 subclass ^= subclasses.At(i); 4182 subclasses_array.AddValue(subclass);
4183 subclasses_array.AddValue(subclass);
4184 }
4185 } 4183 }
4186 } 4184 }
4187 } 4185 }
4188 { 4186 {
4189 ClassTable* class_table = Isolate::Current()->class_table(); 4187 ClassTable* class_table = Isolate::Current()->class_table();
4190 const ClassHeapStats* stats = class_table->StatsWithUpdatedSize(id()); 4188 const ClassHeapStats* stats = class_table->StatsWithUpdatedSize(id());
4191 if (stats != NULL) { 4189 if (stats != NULL) {
4192 JSONObject allocation_stats(&jsobj, "allocationStats"); 4190 JSONObject allocation_stats(&jsobj, "allocationStats");
4193 stats->PrintToJSONObject(*this, &allocation_stats); 4191 stats->PrintToJSONObject(*this, &allocation_stats);
4194 } 4192 }
(...skipping 15380 matching lines...) Expand 10 before | Expand all | Expand 10 after
19575 return tag_label.ToCString(); 19573 return tag_label.ToCString();
19576 } 19574 }
19577 19575
19578 19576
19579 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 19577 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
19580 Instance::PrintJSONImpl(stream, ref); 19578 Instance::PrintJSONImpl(stream, ref);
19581 } 19579 }
19582 19580
19583 19581
19584 } // namespace dart 19582 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/service/object.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698