| 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 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 Instance::PrintJSONImpl(stream, ref); | 1462 Instance::PrintJSONImpl(stream, ref); |
| 1463 } | 1463 } |
| 1464 | 1464 |
| 1465 | 1465 |
| 1466 void StackTrace::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1466 void StackTrace::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1467 JSONObject jsobj(stream); | 1467 JSONObject jsobj(stream); |
| 1468 PrintSharedInstanceJSON(&jsobj, ref); | 1468 PrintSharedInstanceJSON(&jsobj, ref); |
| 1469 jsobj.AddProperty("kind", "StackTrace"); | 1469 jsobj.AddProperty("kind", "StackTrace"); |
| 1470 jsobj.AddServiceId(*this); | 1470 jsobj.AddServiceId(*this); |
| 1471 intptr_t idx = 0; | 1471 intptr_t idx = 0; |
| 1472 jsobj.AddProperty("valueAsString", ToCStringInternal(&idx)); | 1472 jsobj.AddProperty("valueAsString", ToCStringInternal(*this, &idx)); |
| 1473 } | 1473 } |
| 1474 | 1474 |
| 1475 | 1475 |
| 1476 void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1476 void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1477 JSONObject jsobj(stream); | 1477 JSONObject jsobj(stream); |
| 1478 PrintSharedInstanceJSON(&jsobj, ref); | 1478 PrintSharedInstanceJSON(&jsobj, ref); |
| 1479 jsobj.AddProperty("kind", "RegExp"); | 1479 jsobj.AddProperty("kind", "RegExp"); |
| 1480 jsobj.AddServiceId(*this); | 1480 jsobj.AddServiceId(*this); |
| 1481 | 1481 |
| 1482 jsobj.AddProperty("pattern", String::Handle(pattern())); | 1482 jsobj.AddProperty("pattern", String::Handle(pattern())); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1550 jsobj.AddProperty("mirrorReferent", referent_handle); | 1550 jsobj.AddProperty("mirrorReferent", referent_handle); |
| 1551 } | 1551 } |
| 1552 | 1552 |
| 1553 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1553 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1554 Instance::PrintJSONImpl(stream, ref); | 1554 Instance::PrintJSONImpl(stream, ref); |
| 1555 } | 1555 } |
| 1556 | 1556 |
| 1557 #endif | 1557 #endif |
| 1558 | 1558 |
| 1559 } // namespace dart | 1559 } // namespace dart |
| OLD | NEW |