Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: runtime/vm/object.cc

Issue 160753004: Do not resolve type arguments when only a resolved type class is needed to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | tests/language/regress_16640_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | tests/language/regress_16640_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698