| 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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 | 1069 |
| 1070 PrintSharedInstanceJSON(&jsobj, ref); | 1070 PrintSharedInstanceJSON(&jsobj, ref); |
| 1071 // TODO(regis): Wouldn't it be simpler to provide a Closure::PrintJSONImpl()? | 1071 // TODO(regis): Wouldn't it be simpler to provide a Closure::PrintJSONImpl()? |
| 1072 if (IsClosure()) { | 1072 if (IsClosure()) { |
| 1073 jsobj.AddProperty("kind", "Closure"); | 1073 jsobj.AddProperty("kind", "Closure"); |
| 1074 } else { | 1074 } else { |
| 1075 jsobj.AddProperty("kind", "PlainInstance"); | 1075 jsobj.AddProperty("kind", "PlainInstance"); |
| 1076 } | 1076 } |
| 1077 jsobj.AddServiceId(*this); | 1077 jsobj.AddServiceId(*this); |
| 1078 if (IsClosure()) { | 1078 if (IsClosure()) { |
| 1079 // TODO(regis): How about closureInstantiator? | 1079 // TODO(regis): How about closureInstantiatorTypeArguments and |
| 1080 // closureFunctionTypeArguments? |
| 1080 jsobj.AddProperty("closureFunction", | 1081 jsobj.AddProperty("closureFunction", |
| 1081 Function::Handle(Closure::Cast(*this).function())); | 1082 Function::Handle(Closure::Cast(*this).function())); |
| 1082 jsobj.AddProperty("closureContext", | 1083 jsobj.AddProperty("closureContext", |
| 1083 Context::Handle(Closure::Cast(*this).context())); | 1084 Context::Handle(Closure::Cast(*this).context())); |
| 1084 } | 1085 } |
| 1085 if (ref) { | 1086 if (ref) { |
| 1086 return; | 1087 return; |
| 1087 } | 1088 } |
| 1088 if (IsClosure()) { | 1089 if (IsClosure()) { |
| 1089 Debugger* debugger = Isolate::Current()->debugger(); | 1090 Debugger* debugger = Isolate::Current()->debugger(); |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1581 jsobj.AddProperty("mirrorReferent", referent_handle); | 1582 jsobj.AddProperty("mirrorReferent", referent_handle); |
| 1582 } | 1583 } |
| 1583 | 1584 |
| 1584 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1585 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1585 Instance::PrintJSONImpl(stream, ref); | 1586 Instance::PrintJSONImpl(stream, ref); |
| 1586 } | 1587 } |
| 1587 | 1588 |
| 1588 #endif | 1589 #endif |
| 1589 | 1590 |
| 1590 } // namespace dart | 1591 } // namespace dart |
| OLD | NEW |