| OLD | NEW |
| 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 func.AddProperty("name", vm_name); | 831 func.AddProperty("name", vm_name); |
| 832 AddNameProperties(&func, vm_name, vm_name); | 832 AddNameProperties(&func, vm_name, vm_name); |
| 833 } | 833 } |
| 834 jsobj.AddPropertyF("_startAddress", "%" Px "", PayloadStart()); | 834 jsobj.AddPropertyF("_startAddress", "%" Px "", PayloadStart()); |
| 835 jsobj.AddPropertyF("_endAddress", "%" Px "", PayloadStart() + Size()); | 835 jsobj.AddPropertyF("_endAddress", "%" Px "", PayloadStart() + Size()); |
| 836 jsobj.AddProperty("_alive", is_alive()); | 836 jsobj.AddProperty("_alive", is_alive()); |
| 837 const ObjectPool& object_pool = ObjectPool::Handle(GetObjectPool()); | 837 const ObjectPool& object_pool = ObjectPool::Handle(GetObjectPool()); |
| 838 jsobj.AddProperty("_objectPool", object_pool); | 838 jsobj.AddProperty("_objectPool", object_pool); |
| 839 { | 839 { |
| 840 JSONArray jsarr(&jsobj, "_disassembly"); | 840 JSONArray jsarr(&jsobj, "_disassembly"); |
| 841 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 841 if (is_alive()) { | 842 if (is_alive()) { |
| 842 // Only disassemble alive code objects. | 843 // Only disassemble alive code objects. |
| 843 DisassembleToJSONStream formatter(jsarr); | 844 DisassembleToJSONStream formatter(jsarr); |
| 844 Disassemble(&formatter); | 845 Disassemble(&formatter); |
| 845 } | 846 } |
| 847 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 846 } | 848 } |
| 847 const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors()); | 849 const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors()); |
| 848 if (!descriptors.IsNull()) { | 850 if (!descriptors.IsNull()) { |
| 849 JSONObject desc(&jsobj, "_descriptors"); | 851 JSONObject desc(&jsobj, "_descriptors"); |
| 850 descriptors.PrintToJSONObject(&desc, false); | 852 descriptors.PrintToJSONObject(&desc, false); |
| 851 } | 853 } |
| 852 | 854 |
| 853 PrintJSONInlineIntervals(&jsobj); | 855 PrintJSONInlineIntervals(&jsobj); |
| 854 } | 856 } |
| 855 | 857 |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 jsobj.AddProperty("mirrorReferent", referent_handle); | 1513 jsobj.AddProperty("mirrorReferent", referent_handle); |
| 1512 } | 1514 } |
| 1513 | 1515 |
| 1514 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1516 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1515 Instance::PrintJSONImpl(stream, ref); | 1517 Instance::PrintJSONImpl(stream, ref); |
| 1516 } | 1518 } |
| 1517 | 1519 |
| 1518 #endif | 1520 #endif |
| 1519 | 1521 |
| 1520 } // namespace dart | 1522 } // namespace dart |
| OLD | NEW |