| OLD | NEW |
| 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 6645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6656 ObjectIdRing* ring = Isolate::Current()->object_id_ring(); | 6656 ObjectIdRing* ring = Isolate::Current()->object_id_ring(); |
| 6657 id = ring->GetIdForObject(raw()); | 6657 id = ring->GetIdForObject(raw()); |
| 6658 jsobj.AddPropertyF("id", "objects/%" Pd "", id); | 6658 jsobj.AddPropertyF("id", "objects/%" Pd "", id); |
| 6659 } else { | 6659 } else { |
| 6660 jsobj.AddPropertyF("id", "classes/%" Pd "/%s/%" Pd "", cid, selector, id); | 6660 jsobj.AddPropertyF("id", "classes/%" Pd "/%s/%" Pd "", cid, selector, id); |
| 6661 } | 6661 } |
| 6662 jsobj.AddProperty("name", internal_name); | 6662 jsobj.AddProperty("name", internal_name); |
| 6663 jsobj.AddProperty("user_name", pretty_name); | 6663 jsobj.AddProperty("user_name", pretty_name); |
| 6664 if (cls.IsTopLevel()) { | 6664 if (cls.IsTopLevel()) { |
| 6665 const Library& library = Library::Handle(cls.library()); | 6665 const Library& library = Library::Handle(cls.library()); |
| 6666 jsobj.AddProperty("owner", library); | 6666 jsobj.AddProperty("owningLibrary", library); |
| 6667 } else { | 6667 } else { |
| 6668 jsobj.AddProperty("owner", cls); | 6668 jsobj.AddProperty("owningClass", cls); |
| 6669 } | 6669 } |
| 6670 const Function& parent = Function::Handle(parent_function()); | 6670 const Function& parent = Function::Handle(parent_function()); |
| 6671 if (!parent.IsNull()) { | 6671 if (!parent.IsNull()) { |
| 6672 jsobj.AddProperty("parent", parent); | 6672 jsobj.AddProperty("parent", parent); |
| 6673 } | 6673 } |
| 6674 const char* kind_string = Function::KindToCString(kind()); | 6674 const char* kind_string = Function::KindToCString(kind()); |
| 6675 jsobj.AddProperty("kind", kind_string); | 6675 jsobj.AddProperty("kind", kind_string); |
| 6676 if (ref) { | 6676 if (ref) { |
| 6677 return; | 6677 return; |
| 6678 } | 6678 } |
| (...skipping 12375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19054 return tag_label.ToCString(); | 19054 return tag_label.ToCString(); |
| 19055 } | 19055 } |
| 19056 | 19056 |
| 19057 | 19057 |
| 19058 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19058 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 19059 Instance::PrintJSONImpl(stream, ref); | 19059 Instance::PrintJSONImpl(stream, ref); |
| 19060 } | 19060 } |
| 19061 | 19061 |
| 19062 | 19062 |
| 19063 } // namespace dart | 19063 } // namespace dart |
| OLD | NEW |