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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 } | 729 } |
730 JSONArray members(&jsobj, "members"); | 730 JSONArray members(&jsobj, "members"); |
731 String& var_name = String::Handle(); | 731 String& var_name = String::Handle(); |
732 for (intptr_t i = 0; i < Length(); i++) { | 732 for (intptr_t i = 0; i < Length(); i++) { |
733 RawLocalVarDescriptors::VarInfo info; | 733 RawLocalVarDescriptors::VarInfo info; |
734 var_name = GetName(i); | 734 var_name = GetName(i); |
735 GetInfo(i, &info); | 735 GetInfo(i, &info); |
736 JSONObject var(&members); | 736 JSONObject var(&members); |
737 var.AddProperty("name", var_name.ToCString()); | 737 var.AddProperty("name", var_name.ToCString()); |
738 var.AddProperty("index", static_cast<intptr_t>(info.index())); | 738 var.AddProperty("index", static_cast<intptr_t>(info.index())); |
739 var.AddProperty("beginPos", info.begin_pos); | 739 var.AddProperty("declarationTokenPos", info.declaration_pos); |
740 var.AddProperty("endPos", info.end_pos); | 740 var.AddProperty("scopeStartTokenPos", info.begin_pos); |
| 741 var.AddProperty("scopeEndTokenPos", info.end_pos); |
741 var.AddProperty("scopeId", static_cast<intptr_t>(info.scope_id)); | 742 var.AddProperty("scopeId", static_cast<intptr_t>(info.scope_id)); |
742 var.AddProperty("kind", KindToCString(info.kind())); | 743 var.AddProperty("kind", KindToCString(info.kind())); |
743 } | 744 } |
744 } | 745 } |
745 | 746 |
746 | 747 |
747 void ExceptionHandlers::PrintJSONImpl(JSONStream* stream, | 748 void ExceptionHandlers::PrintJSONImpl(JSONStream* stream, |
748 bool ref) const { | 749 bool ref) const { |
749 Object::PrintJSONImpl(stream, ref); | 750 Object::PrintJSONImpl(stream, ref); |
750 } | 751 } |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 jsobj.AddProperty("mirrorReferent", referent_handle); | 1572 jsobj.AddProperty("mirrorReferent", referent_handle); |
1572 } | 1573 } |
1573 | 1574 |
1574 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1575 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
1575 Instance::PrintJSONImpl(stream, ref); | 1576 Instance::PrintJSONImpl(stream, ref); |
1576 } | 1577 } |
1577 | 1578 |
1578 #endif | 1579 #endif |
1579 | 1580 |
1580 } // namespace dart | 1581 } // namespace dart |
OLD | NEW |