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

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

Issue 1807263004: Improve class-tree, class-view, and instance-view. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code review Created 4 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
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/service/service.md » ('j') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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/debugger.h" 5 #include "vm/debugger.h"
6 #include "vm/disassembler.h" 6 #include "vm/disassembler.h"
7 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/object_store.h" 8 #include "vm/object_store.h"
9 #include "vm/stub_code.h" 9 #include "vm/stub_code.h"
10 #include "vm/symbols.h" 10 #include "vm/symbols.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const Error& err = Error::Handle(EnsureIsFinalized(Thread::Current())); 94 const Error& err = Error::Handle(EnsureIsFinalized(Thread::Current()));
95 if (!err.IsNull()) { 95 if (!err.IsNull()) {
96 jsobj.AddProperty("error", err); 96 jsobj.AddProperty("error", err);
97 } 97 }
98 jsobj.AddProperty("abstract", is_abstract()); 98 jsobj.AddProperty("abstract", is_abstract());
99 jsobj.AddProperty("const", is_const()); 99 jsobj.AddProperty("const", is_const());
100 jsobj.AddProperty("_finalized", is_finalized()); 100 jsobj.AddProperty("_finalized", is_finalized());
101 jsobj.AddProperty("_implemented", is_implemented()); 101 jsobj.AddProperty("_implemented", is_implemented());
102 jsobj.AddProperty("_patch", is_patch()); 102 jsobj.AddProperty("_patch", is_patch());
103 jsobj.AddProperty("_traceAllocations", TraceAllocation(isolate)); 103 jsobj.AddProperty("_traceAllocations", TraceAllocation(isolate));
104
104 const Class& superClass = Class::Handle(SuperClass()); 105 const Class& superClass = Class::Handle(SuperClass());
105 if (!superClass.IsNull()) { 106 if (!superClass.IsNull()) {
106 jsobj.AddProperty("super", superClass); 107 jsobj.AddProperty("super", superClass);
107 } 108 }
109 const AbstractType& superType = AbstractType::Handle(super_type());
110 if (!superType.IsNull()) {
111 jsobj.AddProperty("superType", superType);
112 }
113 const Type& mix = Type::Handle(mixin());
114 if (!mix.IsNull()) {
115 jsobj.AddProperty("mixin", mix);
116 }
108 jsobj.AddProperty("library", Object::Handle(library())); 117 jsobj.AddProperty("library", Object::Handle(library()));
109 const Script& script = Script::Handle(this->script()); 118 const Script& script = Script::Handle(this->script());
110 if (!script.IsNull()) { 119 if (!script.IsNull()) {
111 jsobj.AddLocation(script, token_pos(), ComputeEndTokenPos()); 120 jsobj.AddLocation(script, token_pos(), ComputeEndTokenPos());
112 } 121 }
113 { 122 {
114 JSONArray interfaces_array(&jsobj, "interfaces"); 123 JSONArray interfaces_array(&jsobj, "interfaces");
115 const Array& interface_array = Array::Handle(interfaces()); 124 const Array& interface_array = Array::Handle(interfaces());
116 Type& interface_type = Type::Handle(); 125 Type& interface_type = Type::Handle();
117 if (!interface_array.IsNull()) { 126 if (!interface_array.IsNull()) {
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 jsobj.AddProperty("mirrorReferent", referent_handle); 1602 jsobj.AddProperty("mirrorReferent", referent_handle);
1594 } 1603 }
1595 1604
1596 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 1605 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
1597 Instance::PrintJSONImpl(stream, ref); 1606 Instance::PrintJSONImpl(stream, ref);
1598 } 1607 }
1599 1608
1600 #endif 1609 #endif
1601 1610
1602 } // namespace dart 1611 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/service/service.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698