| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/object.h" | 5 #include "vm/object.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 17985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17996 const char* Bool::ToCString() const { | 17996 const char* Bool::ToCString() const { |
| 17997 return value() ? "true" : "false"; | 17997 return value() ? "true" : "false"; |
| 17998 } | 17998 } |
| 17999 | 17999 |
| 18000 | 18000 |
| 18001 void Bool::PrintJSONImpl(JSONStream* stream, bool ref) const { | 18001 void Bool::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 18002 const char* str = ToCString(); | 18002 const char* str = ToCString(); |
| 18003 JSONObject jsobj(stream); | 18003 JSONObject jsobj(stream); |
| 18004 jsobj.AddProperty("type", JSONType(ref)); | 18004 jsobj.AddProperty("type", JSONType(ref)); |
| 18005 jsobj.AddPropertyF("id", "objects/bool-%s", str); | 18005 jsobj.AddPropertyF("id", "objects/bool-%s", str); |
| 18006 class Class& cls = Class::Handle(this->clazz()); | 18006 const Class& cls = Class::Handle(this->clazz()); |
| 18007 jsobj.AddProperty("class", cls); | 18007 jsobj.AddProperty("class", cls); |
| 18008 jsobj.AddPropertyF("valueAsString", "%s", str); | 18008 jsobj.AddPropertyF("valueAsString", "%s", str); |
| 18009 } | 18009 } |
| 18010 | 18010 |
| 18011 | 18011 |
| 18012 bool Array::CanonicalizeEquals(const Instance& other) const { | 18012 bool Array::CanonicalizeEquals(const Instance& other) const { |
| 18013 if (this->raw() == other.raw()) { | 18013 if (this->raw() == other.raw()) { |
| 18014 // Both handles point to the same raw instance. | 18014 // Both handles point to the same raw instance. |
| 18015 return true; | 18015 return true; |
| 18016 } | 18016 } |
| (...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19573 return tag_label.ToCString(); | 19573 return tag_label.ToCString(); |
| 19574 } | 19574 } |
| 19575 | 19575 |
| 19576 | 19576 |
| 19577 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 19577 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
| 19578 Instance::PrintJSONImpl(stream, ref); | 19578 Instance::PrintJSONImpl(stream, ref); |
| 19579 } | 19579 } |
| 19580 | 19580 |
| 19581 | 19581 |
| 19582 } // namespace dart | 19582 } // namespace dart |
| OLD | NEW |