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 3533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3544 void Class::set_constants(const Array& value) const { | 3544 void Class::set_constants(const Array& value) const { |
3545 ASSERT(!value.IsNull()); | 3545 ASSERT(!value.IsNull()); |
3546 StorePointer(&raw_ptr()->constants_, value.raw()); | 3546 StorePointer(&raw_ptr()->constants_, value.raw()); |
3547 } | 3547 } |
3548 | 3548 |
3549 | 3549 |
3550 RawObject* Class::canonical_types() const { | 3550 RawObject* Class::canonical_types() const { |
3551 return raw_ptr()->canonical_types_; | 3551 return raw_ptr()->canonical_types_; |
3552 } | 3552 } |
3553 | 3553 |
| 3554 |
3554 void Class::set_canonical_types(const Object& value) const { | 3555 void Class::set_canonical_types(const Object& value) const { |
3555 ASSERT(!value.IsNull()); | 3556 ASSERT(!value.IsNull()); |
3556 StorePointer(&raw_ptr()->canonical_types_, value.raw()); | 3557 StorePointer(&raw_ptr()->canonical_types_, value.raw()); |
3557 } | 3558 } |
3558 | 3559 |
3559 | 3560 |
3560 intptr_t Class::NumCanonicalTypes() const { | 3561 intptr_t Class::NumCanonicalTypes() const { |
3561 if (CanonicalType() != Type::null()) { | 3562 if (CanonicalType() != Type::null()) { |
3562 return 1; | 3563 return 1; |
3563 } | 3564 } |
(...skipping 17594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21158 return tag_label.ToCString(); | 21159 return tag_label.ToCString(); |
21159 } | 21160 } |
21160 | 21161 |
21161 | 21162 |
21162 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 21163 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
21163 Instance::PrintJSONImpl(stream, ref); | 21164 Instance::PrintJSONImpl(stream, ref); |
21164 } | 21165 } |
21165 | 21166 |
21166 | 21167 |
21167 } // namespace dart | 21168 } // namespace dart |
OLD | NEW |