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 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 void Stacktrace::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1511 void Stacktrace::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1512 JSONObject jsobj(stream); | 1512 JSONObject jsobj(stream); |
1513 PrintSharedInstanceJSON(&jsobj, ref); | 1513 PrintSharedInstanceJSON(&jsobj, ref); |
1514 jsobj.AddProperty("kind", "StackTrace"); | 1514 jsobj.AddProperty("kind", "StackTrace"); |
1515 jsobj.AddServiceId(*this); | 1515 jsobj.AddServiceId(*this); |
1516 intptr_t idx = 0; | 1516 intptr_t idx = 0; |
1517 jsobj.AddProperty("valueAsString", ToCStringInternal(&idx)); | 1517 jsobj.AddProperty("valueAsString", ToCStringInternal(&idx)); |
1518 } | 1518 } |
1519 | 1519 |
1520 | 1520 |
1521 void JSRegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1521 void RegExp::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1522 JSONObject jsobj(stream); | 1522 JSONObject jsobj(stream); |
1523 PrintSharedInstanceJSON(&jsobj, ref); | 1523 PrintSharedInstanceJSON(&jsobj, ref); |
1524 jsobj.AddProperty("kind", "RegExp"); | 1524 jsobj.AddProperty("kind", "RegExp"); |
1525 jsobj.AddServiceId(*this); | 1525 jsobj.AddServiceId(*this); |
1526 | 1526 |
1527 jsobj.AddProperty("pattern", String::Handle(pattern())); | 1527 jsobj.AddProperty("pattern", String::Handle(pattern())); |
1528 | 1528 |
1529 if (ref) { | 1529 if (ref) { |
1530 return; | 1530 return; |
1531 } | 1531 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 jsobj.AddProperty("mirrorReferent", referent_handle); | 1575 jsobj.AddProperty("mirrorReferent", referent_handle); |
1576 } | 1576 } |
1577 | 1577 |
1578 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1578 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1579 Instance::PrintJSONImpl(stream, ref); | 1579 Instance::PrintJSONImpl(stream, ref); |
1580 } | 1580 } |
1581 | 1581 |
1582 #endif | 1582 #endif |
1583 | 1583 |
1584 } // namespace dart | 1584 } // namespace dart |
OLD | NEW |