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 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 } | 2109 } |
2110 // Calling NumOwnTypeArguments() on a mixin application class will setup the | 2110 // Calling NumOwnTypeArguments() on a mixin application class will setup the |
2111 // type parameters if not already done. | 2111 // type parameters if not already done. |
2112 num_type_args += cls.NumOwnTypeArguments(); | 2112 num_type_args += cls.NumOwnTypeArguments(); |
2113 // Super type of Object class is null. | 2113 // Super type of Object class is null. |
2114 if ((cls.super_type() == AbstractType::null()) || | 2114 if ((cls.super_type() == AbstractType::null()) || |
2115 (cls.super_type() == isolate->object_store()->object_type())) { | 2115 (cls.super_type() == isolate->object_store()->object_type())) { |
2116 break; | 2116 break; |
2117 } | 2117 } |
2118 sup_type = cls.super_type(); | 2118 sup_type = cls.super_type(); |
2119 ClassFinalizer::ResolveType(cls, sup_type); | 2119 ClassFinalizer::ResolveTypeClass(cls, sup_type); |
2120 cls = sup_type.type_class(); | 2120 cls = sup_type.type_class(); |
2121 } while (true); | 2121 } while (true); |
2122 set_num_type_arguments(num_type_args); | 2122 set_num_type_arguments(num_type_args); |
2123 return num_type_args; | 2123 return num_type_args; |
2124 } | 2124 } |
2125 | 2125 |
2126 | 2126 |
2127 RawClass* Class::SuperClass() const { | 2127 RawClass* Class::SuperClass() const { |
2128 if (super_type() == AbstractType::null()) { | 2128 if (super_type() == AbstractType::null()) { |
2129 return Class::null(); | 2129 return Class::null(); |
(...skipping 15229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17359 return "_MirrorReference"; | 17359 return "_MirrorReference"; |
17360 } | 17360 } |
17361 | 17361 |
17362 | 17362 |
17363 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { | 17363 void MirrorReference::PrintToJSONStream(JSONStream* stream, bool ref) const { |
17364 Instance::PrintToJSONStream(stream, ref); | 17364 Instance::PrintToJSONStream(stream, ref); |
17365 } | 17365 } |
17366 | 17366 |
17367 | 17367 |
17368 } // namespace dart | 17368 } // namespace dart |
OLD | NEW |