| 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 10512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10523 JSONObject func(&jsobj, "function"); | 10523 JSONObject func(&jsobj, "function"); |
| 10524 func.AddProperty("type", "@Function"); | 10524 func.AddProperty("type", "@Function"); |
| 10525 func.AddProperty("kind", "Stub"); | 10525 func.AddProperty("kind", "Stub"); |
| 10526 func.AddPropertyF("id", "functions/stub-%" Pd "", EntryPoint()); | 10526 func.AddPropertyF("id", "functions/stub-%" Pd "", EntryPoint()); |
| 10527 func.AddProperty("user_name", user_name.ToCString()); | 10527 func.AddProperty("user_name", user_name.ToCString()); |
| 10528 func.AddProperty("name", name.ToCString()); | 10528 func.AddProperty("name", name.ToCString()); |
| 10529 } | 10529 } |
| 10530 if (ref) { | 10530 if (ref) { |
| 10531 return; | 10531 return; |
| 10532 } | 10532 } |
| 10533 const Array& array = Array::Handle(ObjectPool()); |
| 10534 jsobj.AddProperty("object_pool", array); |
| 10533 JSONArray jsarr(&jsobj, "disassembly"); | 10535 JSONArray jsarr(&jsobj, "disassembly"); |
| 10534 if (is_alive()) { | 10536 if (is_alive()) { |
| 10535 // Only disassemble alive code objects. | 10537 // Only disassemble alive code objects. |
| 10536 DisassembleToJSONStream formatter(jsarr); | 10538 DisassembleToJSONStream formatter(jsarr); |
| 10537 Disassemble(&formatter); | 10539 Disassemble(&formatter); |
| 10538 } | 10540 } |
| 10539 } | 10541 } |
| 10540 | 10542 |
| 10541 | 10543 |
| 10542 uword Code::GetPatchCodePc() const { | 10544 uword Code::GetPatchCodePc() const { |
| (...skipping 7112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17655 return "_MirrorReference"; | 17657 return "_MirrorReference"; |
| 17656 } | 17658 } |
| 17657 | 17659 |
| 17658 | 17660 |
| 17659 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 17661 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 17660 Instance::PrintToJSONStream(stream, ref); | 17662 Instance::PrintToJSONStream(stream, ref); |
| 17661 } | 17663 } |
| 17662 | 17664 |
| 17663 | 17665 |
| 17664 } // namespace dart | 17666 } // namespace dart |
| OLD | NEW |