| 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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 void Closure::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1495 void Closure::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1496 Instance::PrintJSONImpl(stream, ref); | 1496 Instance::PrintJSONImpl(stream, ref); |
| 1497 } | 1497 } |
| 1498 | 1498 |
| 1499 | 1499 |
| 1500 void StackTrace::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1500 void StackTrace::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1501 JSONObject jsobj(stream); | 1501 JSONObject jsobj(stream); |
| 1502 PrintSharedInstanceJSON(&jsobj, ref); | 1502 PrintSharedInstanceJSON(&jsobj, ref); |
| 1503 jsobj.AddProperty("kind", "StackTrace"); | 1503 jsobj.AddProperty("kind", "StackTrace"); |
| 1504 jsobj.AddServiceId(*this); | 1504 jsobj.AddServiceId(*this); |
| 1505 jsobj.AddProperty("valueAsString", ToCString()); | 1505 intptr_t idx = 0; |
| 1506 jsobj.AddProperty("valueAsString", ToCStringInternal(*this, &idx)); |
| 1506 } | 1507 } |
| 1507 | 1508 |
| 1508 | 1509 |
| 1509 void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1510 void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1510 JSONObject jsobj(stream); | 1511 JSONObject jsobj(stream); |
| 1511 PrintSharedInstanceJSON(&jsobj, ref); | 1512 PrintSharedInstanceJSON(&jsobj, ref); |
| 1512 jsobj.AddProperty("kind", "RegExp"); | 1513 jsobj.AddProperty("kind", "RegExp"); |
| 1513 jsobj.AddServiceId(*this); | 1514 jsobj.AddServiceId(*this); |
| 1514 | 1515 |
| 1515 jsobj.AddProperty("pattern", String::Handle(pattern())); | 1516 jsobj.AddProperty("pattern", String::Handle(pattern())); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 jsobj.AddProperty("mirrorReferent", referent_handle); | 1584 jsobj.AddProperty("mirrorReferent", referent_handle); |
| 1584 } | 1585 } |
| 1585 | 1586 |
| 1586 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1587 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1587 Instance::PrintJSONImpl(stream, ref); | 1588 Instance::PrintJSONImpl(stream, ref); |
| 1588 } | 1589 } |
| 1589 | 1590 |
| 1590 #endif | 1591 #endif |
| 1591 | 1592 |
| 1592 } // namespace dart | 1593 } // namespace dart |
| OLD | NEW |