| 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 10577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10588 if (ref) { | 10588 if (ref) { |
| 10589 return; | 10589 return; |
| 10590 } | 10590 } |
| 10591 Class& cls = Class::Handle(this->clazz()); | 10591 Class& cls = Class::Handle(this->clazz()); |
| 10592 jsobj->AddProperty("class", cls); | 10592 jsobj->AddProperty("class", cls); |
| 10593 jsobj->AddProperty("size", raw()->Size()); | 10593 jsobj->AddProperty("size", raw()->Size()); |
| 10594 JSONArray members(jsobj, "members"); | 10594 JSONArray members(jsobj, "members"); |
| 10595 Iterator iter(*this, RawPcDescriptors::kAnyKind); | 10595 Iterator iter(*this, RawPcDescriptors::kAnyKind); |
| 10596 while (iter.MoveNext()) { | 10596 while (iter.MoveNext()) { |
| 10597 JSONObject descriptor(&members); | 10597 JSONObject descriptor(&members); |
| 10598 descriptor.AddPropertyF("pc_offset", "%" Px "", iter.PcOffset()); | 10598 descriptor.AddPropertyF("pcOffset", "%" Px "", iter.PcOffset()); |
| 10599 descriptor.AddProperty("kind", KindAsStr(iter.Kind())); | 10599 descriptor.AddProperty("kind", KindAsStr(iter.Kind())); |
| 10600 descriptor.AddProperty("deoptId", iter.DeoptId()); | 10600 descriptor.AddProperty("deoptId", iter.DeoptId()); |
| 10601 descriptor.AddProperty("tokenPos", iter.TokenPos()); | 10601 descriptor.AddProperty("tokenPos", iter.TokenPos()); |
| 10602 descriptor.AddProperty("tryIndex", iter.TryIndex()); | 10602 descriptor.AddProperty("tryIndex", iter.TryIndex()); |
| 10603 } | 10603 } |
| 10604 } | 10604 } |
| 10605 | 10605 |
| 10606 | 10606 |
| 10607 void PcDescriptors::PrintJSONImpl(JSONStream* stream, bool ref) const { | 10607 void PcDescriptors::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 10608 JSONObject jsobj(stream); | 10608 JSONObject jsobj(stream); |
| (...skipping 9917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20526 return tag_label.ToCString(); | 20526 return tag_label.ToCString(); |
| 20527 } | 20527 } |
| 20528 | 20528 |
| 20529 | 20529 |
| 20530 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20530 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 20531 Instance::PrintJSONImpl(stream, ref); | 20531 Instance::PrintJSONImpl(stream, ref); |
| 20532 } | 20532 } |
| 20533 | 20533 |
| 20534 | 20534 |
| 20535 } // namespace dart | 20535 } // namespace dart |
| OLD | NEW |