| 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 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1781 if (super_type() == AbstractType::null()) { | 1781 if (super_type() == AbstractType::null()) { |
| 1782 return Class::null(); | 1782 return Class::null(); |
| 1783 } | 1783 } |
| 1784 const AbstractType& sup_type = AbstractType::Handle(super_type()); | 1784 const AbstractType& sup_type = AbstractType::Handle(super_type()); |
| 1785 return sup_type.type_class(); | 1785 return sup_type.type_class(); |
| 1786 } | 1786 } |
| 1787 | 1787 |
| 1788 | 1788 |
| 1789 void Class::set_super_type(const AbstractType& value) const { | 1789 void Class::set_super_type(const AbstractType& value) const { |
| 1790 ASSERT(value.IsNull() || | 1790 ASSERT(value.IsNull() || |
| 1791 value.IsType() || | 1791 (value.IsType() && !value.IsDynamicType()) || |
| 1792 value.IsBoundedType() || | 1792 value.IsBoundedType() || |
| 1793 value.IsMixinAppType()); | 1793 value.IsMixinAppType()); |
| 1794 StorePointer(&raw_ptr()->super_type_, value.raw()); | 1794 StorePointer(&raw_ptr()->super_type_, value.raw()); |
| 1795 } | 1795 } |
| 1796 | 1796 |
| 1797 | 1797 |
| 1798 // Return a TypeParameter if the type_name is a type parameter of this class. | 1798 // Return a TypeParameter if the type_name is a type parameter of this class. |
| 1799 // Return null otherwise. | 1799 // Return null otherwise. |
| 1800 RawTypeParameter* Class::LookupTypeParameter(const String& type_name) const { | 1800 RawTypeParameter* Class::LookupTypeParameter(const String& type_name) const { |
| 1801 ASSERT(!type_name.IsNull()); | 1801 ASSERT(!type_name.IsNull()); |
| (...skipping 13545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15347 return "_MirrorReference"; | 15347 return "_MirrorReference"; |
| 15348 } | 15348 } |
| 15349 | 15349 |
| 15350 | 15350 |
| 15351 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 15351 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
| 15352 JSONObject jsobj(stream); | 15352 JSONObject jsobj(stream); |
| 15353 } | 15353 } |
| 15354 | 15354 |
| 15355 | 15355 |
| 15356 } // namespace dart | 15356 } // namespace dart |
| OLD | NEW |