| 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors()); | 862 const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors()); |
| 863 if (!descriptors.IsNull()) { | 863 if (!descriptors.IsNull()) { |
| 864 JSONObject desc(&jsobj, "_descriptors"); | 864 JSONObject desc(&jsobj, "_descriptors"); |
| 865 descriptors.PrintToJSONObject(&desc, false); | 865 descriptors.PrintToJSONObject(&desc, false); |
| 866 } | 866 } |
| 867 | 867 |
| 868 PrintJSONInlineIntervals(&jsobj); | 868 PrintJSONInlineIntervals(&jsobj); |
| 869 } | 869 } |
| 870 | 870 |
| 871 | 871 |
| 872 void Code::SetAwaitTokenPositions(const Array& await_token_positions) const { | |
| 873 #if !defined(DART_PRECOMPILED_RUNTIME) | |
| 874 StorePointer(&raw_ptr()->await_token_positions_, await_token_positions.raw()); | |
| 875 #endif | |
| 876 } | |
| 877 | |
| 878 | |
| 879 void Context::PrintJSONImpl(JSONStream* stream, bool ref) const { | 872 void Context::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 880 JSONObject jsobj(stream); | 873 JSONObject jsobj(stream); |
| 881 // TODO(turnidge): Should the user level type for Context be Context | 874 // TODO(turnidge): Should the user level type for Context be Context |
| 882 // or Object? | 875 // or Object? |
| 883 AddCommonObjectProperties(&jsobj, "Context", ref); | 876 AddCommonObjectProperties(&jsobj, "Context", ref); |
| 884 jsobj.AddServiceId(*this); | 877 jsobj.AddServiceId(*this); |
| 885 | 878 |
| 886 jsobj.AddProperty("length", num_variables()); | 879 jsobj.AddProperty("length", num_variables()); |
| 887 | 880 |
| 888 if (ref) { | 881 if (ref) { |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1563 jsobj.AddProperty("mirrorReferent", referent_handle); | 1556 jsobj.AddProperty("mirrorReferent", referent_handle); |
| 1564 } | 1557 } |
| 1565 | 1558 |
| 1566 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1559 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1567 Instance::PrintJSONImpl(stream, ref); | 1560 Instance::PrintJSONImpl(stream, ref); |
| 1568 } | 1561 } |
| 1569 | 1562 |
| 1570 #endif | 1563 #endif |
| 1571 | 1564 |
| 1572 } // namespace dart | 1565 } // namespace dart |
| OLD | NEW |