| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 cls ^= table->At(guarded_cid()); | 401 cls ^= table->At(guarded_cid()); |
| 402 jsobj.AddProperty("_guardClass", cls); | 402 jsobj.AddProperty("_guardClass", cls); |
| 403 } | 403 } |
| 404 if (guarded_list_length() == kUnknownFixedLength) { | 404 if (guarded_list_length() == kUnknownFixedLength) { |
| 405 jsobj.AddProperty("_guardLength", "unknown"); | 405 jsobj.AddProperty("_guardLength", "unknown"); |
| 406 } else if (guarded_list_length() == kNoFixedLength) { | 406 } else if (guarded_list_length() == kNoFixedLength) { |
| 407 jsobj.AddProperty("_guardLength", "variable"); | 407 jsobj.AddProperty("_guardLength", "variable"); |
| 408 } else { | 408 } else { |
| 409 jsobj.AddProperty("_guardLength", guarded_list_length()); | 409 jsobj.AddProperty("_guardLength", guarded_list_length()); |
| 410 } | 410 } |
| 411 const Class& origin_cls = Class::Handle(Origin()); | 411 const class Script& script = Script::Handle(Script()); |
| 412 const class Script& script = Script::Handle(origin_cls.script()); | |
| 413 if (!script.IsNull()) { | 412 if (!script.IsNull()) { |
| 414 jsobj.AddLocation(script, token_pos()); | 413 jsobj.AddLocation(script, token_pos()); |
| 415 } | 414 } |
| 416 } | 415 } |
| 417 | 416 |
| 418 | 417 |
| 419 void LiteralToken::PrintJSONImpl(JSONStream* stream, bool ref) const { | 418 void LiteralToken::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 420 Object::PrintJSONImpl(stream, ref); | 419 Object::PrintJSONImpl(stream, ref); |
| 421 } | 420 } |
| 422 | 421 |
| (...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 jsobj.AddProperty("mirrorReferent", referent_handle); | 1589 jsobj.AddProperty("mirrorReferent", referent_handle); |
| 1591 } | 1590 } |
| 1592 | 1591 |
| 1593 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 1592 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 1594 Instance::PrintJSONImpl(stream, ref); | 1593 Instance::PrintJSONImpl(stream, ref); |
| 1595 } | 1594 } |
| 1596 | 1595 |
| 1597 #endif | 1596 #endif |
| 1598 | 1597 |
| 1599 } // namespace dart | 1598 } // namespace dart |
| OLD | NEW |