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

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: 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
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
105 const AbstractType& superType = AbstractType::Handle(super_type());
106 jsobj.AddProperty("superType", superType);
107
104 const Class& superClass = Class::Handle(SuperClass()); 108 const Class& superClass = Class::Handle(SuperClass());
105 if (!superClass.IsNull()) { 109 if (!superClass.IsNull()) {
106 jsobj.AddProperty("super", superClass); 110 jsobj.AddProperty("super", superClass);
107 } 111 }
112 const Type& mix = Type::Handle(mixin());
113 if (!mix.IsNull()) {
114 jsobj.AddProperty("mixin", mix);
115 }
108 jsobj.AddProperty("library", Object::Handle(library())); 116 jsobj.AddProperty("library", Object::Handle(library()));
109 const Script& script = Script::Handle(this->script()); 117 const Script& script = Script::Handle(this->script());
110 if (!script.IsNull()) { 118 if (!script.IsNull()) {
111 jsobj.AddLocation(script, token_pos(), ComputeEndTokenPos()); 119 jsobj.AddLocation(script, token_pos(), ComputeEndTokenPos());
112 } 120 }
113 { 121 {
114 JSONArray interfaces_array(&jsobj, "interfaces"); 122 JSONArray interfaces_array(&jsobj, "interfaces");
115 const Array& interface_array = Array::Handle(interfaces()); 123 const Array& interface_array = Array::Handle(interfaces());
116 Type& interface_type = Type::Handle(); 124 Type& interface_type = Type::Handle();
117 if (!interface_array.IsNull()) { 125 if (!interface_array.IsNull()) {
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 jsobj.AddProperty("mirrorReferent", referent_handle); 1601 jsobj.AddProperty("mirrorReferent", referent_handle);
1594 } 1602 }
1595 1603
1596 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 1604 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
1597 Instance::PrintJSONImpl(stream, ref); 1605 Instance::PrintJSONImpl(stream, ref);
1598 } 1606 }
1599 1607
1600 #endif 1608 #endif
1601 1609
1602 } // namespace dart 1610 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698