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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 void Closure::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1474 void Closure::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1475 Instance::PrintJSONImpl(stream, ref); | 1475 Instance::PrintJSONImpl(stream, ref); |
1476 } | 1476 } |
1477 | 1477 |
1478 | 1478 |
1479 void StackTrace::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1479 void StackTrace::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1480 JSONObject jsobj(stream); | 1480 JSONObject jsobj(stream); |
1481 PrintSharedInstanceJSON(&jsobj, ref); | 1481 PrintSharedInstanceJSON(&jsobj, ref); |
1482 jsobj.AddProperty("kind", "StackTrace"); | 1482 jsobj.AddProperty("kind", "StackTrace"); |
1483 jsobj.AddServiceId(*this); | 1483 jsobj.AddServiceId(*this); |
1484 intptr_t idx = 0; | 1484 jsobj.AddProperty("valueAsString", ToCString()); |
1485 jsobj.AddProperty("valueAsString", ToCStringInternal(*this, &idx)); | |
1486 } | 1485 } |
1487 | 1486 |
1488 | 1487 |
1489 void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1488 void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1490 JSONObject jsobj(stream); | 1489 JSONObject jsobj(stream); |
1491 PrintSharedInstanceJSON(&jsobj, ref); | 1490 PrintSharedInstanceJSON(&jsobj, ref); |
1492 jsobj.AddProperty("kind", "RegExp"); | 1491 jsobj.AddProperty("kind", "RegExp"); |
1493 jsobj.AddServiceId(*this); | 1492 jsobj.AddServiceId(*this); |
1494 | 1493 |
1495 jsobj.AddProperty("pattern", String::Handle(pattern())); | 1494 jsobj.AddProperty("pattern", String::Handle(pattern())); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 jsobj.AddProperty("mirrorReferent", referent_handle); | 1562 jsobj.AddProperty("mirrorReferent", referent_handle); |
1564 } | 1563 } |
1565 | 1564 |
1566 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1565 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1567 Instance::PrintJSONImpl(stream, ref); | 1566 Instance::PrintJSONImpl(stream, ref); |
1568 } | 1567 } |
1569 | 1568 |
1570 #endif | 1569 #endif |
1571 | 1570 |
1572 } // namespace dart | 1571 } // namespace dart |
OLD | NEW |