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

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

Issue 2742333007: Add Observatory support for UnlinkedCall, SingleTargetCache and SubtypeTestCache. (Closed)
Patch Set: . Created 3 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/observatory_sources.gypi ('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) 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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 } 749 }
750 } 750 }
751 751
752 752
753 void ExceptionHandlers::PrintJSONImpl(JSONStream* stream, bool ref) const { 753 void ExceptionHandlers::PrintJSONImpl(JSONStream* stream, bool ref) const {
754 Object::PrintJSONImpl(stream, ref); 754 Object::PrintJSONImpl(stream, ref);
755 } 755 }
756 756
757 757
758 void SingleTargetCache::PrintJSONImpl(JSONStream* stream, bool ref) const { 758 void SingleTargetCache::PrintJSONImpl(JSONStream* stream, bool ref) const {
759 Object::PrintJSONImpl(stream, ref); 759 JSONObject jsobj(stream);
760 AddCommonObjectProperties(&jsobj, "Object", ref);
761 jsobj.AddServiceId(*this);
762 jsobj.AddProperty("_target", Code::Handle(target()));
763 if (ref) {
764 return;
765 }
766 jsobj.AddProperty("_lowerLimit", lower_limit());
767 jsobj.AddProperty("_upperLimit", upper_limit());
760 } 768 }
761 769
762 770
763 void UnlinkedCall::PrintJSONImpl(JSONStream* stream, bool ref) const { 771 void UnlinkedCall::PrintJSONImpl(JSONStream* stream, bool ref) const {
764 Object::PrintJSONImpl(stream, ref); 772 JSONObject jsobj(stream);
773 AddCommonObjectProperties(&jsobj, "Object", ref);
774 jsobj.AddServiceId(*this);
775 jsobj.AddProperty("_selector", String::Handle(target_name()).ToCString());
776 if (ref) {
777 return;
778 }
779 jsobj.AddProperty("_argumentsDescriptor", Array::Handle(args_descriptor()));
765 } 780 }
766 781
767 782
768 void ICData::PrintJSONImpl(JSONStream* stream, bool ref) const { 783 void ICData::PrintJSONImpl(JSONStream* stream, bool ref) const {
769 JSONObject jsobj(stream); 784 JSONObject jsobj(stream);
770 AddCommonObjectProperties(&jsobj, "Object", ref); 785 AddCommonObjectProperties(&jsobj, "Object", ref);
771 jsobj.AddServiceId(*this); 786 jsobj.AddServiceId(*this);
772 jsobj.AddProperty("_owner", Object::Handle(Owner())); 787 jsobj.AddProperty("_owner", Object::Handle(Owner()));
773 jsobj.AddProperty("_selector", String::Handle(target_name()).ToCString()); 788 jsobj.AddProperty("_selector", String::Handle(target_name()).ToCString());
774 if (ref) { 789 if (ref) {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 return; 933 return;
919 } 934 }
920 jsobj.AddProperty("_buckets", Object::Handle(buckets())); 935 jsobj.AddProperty("_buckets", Object::Handle(buckets()));
921 jsobj.AddProperty("_mask", mask()); 936 jsobj.AddProperty("_mask", mask());
922 jsobj.AddProperty("_argumentsDescriptor", 937 jsobj.AddProperty("_argumentsDescriptor",
923 Object::Handle(arguments_descriptor())); 938 Object::Handle(arguments_descriptor()));
924 } 939 }
925 940
926 941
927 void SubtypeTestCache::PrintJSONImpl(JSONStream* stream, bool ref) const { 942 void SubtypeTestCache::PrintJSONImpl(JSONStream* stream, bool ref) const {
928 Object::PrintJSONImpl(stream, ref); 943 JSONObject jsobj(stream);
944 AddCommonObjectProperties(&jsobj, "Object", ref);
945 jsobj.AddServiceId(*this);
946 if (ref) {
947 return;
948 }
949 jsobj.AddProperty("_cache", Array::Handle(cache()));
929 } 950 }
930 951
931 952
932 void Error::PrintJSONImpl(JSONStream* stream, bool ref) const { 953 void Error::PrintJSONImpl(JSONStream* stream, bool ref) const {
933 UNREACHABLE(); 954 UNREACHABLE();
934 } 955 }
935 956
936 957
937 void ApiError::PrintJSONImpl(JSONStream* stream, bool ref) const { 958 void ApiError::PrintJSONImpl(JSONStream* stream, bool ref) const {
938 JSONObject jsobj(stream); 959 JSONObject jsobj(stream);
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 jsobj.AddProperty("mirrorReferent", referent_handle); 1584 jsobj.AddProperty("mirrorReferent", referent_handle);
1564 } 1585 }
1565 1586
1566 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 1587 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
1567 Instance::PrintJSONImpl(stream, ref); 1588 Instance::PrintJSONImpl(stream, ref);
1568 } 1589 }
1569 1590
1570 #endif 1591 #endif
1571 1592
1572 } // namespace dart 1593 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/observatory/observatory_sources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698