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

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

Issue 27610002: Instantations of mixins and interfaces. Equality of type parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: check for resolved typeclass Created 7 years, 2 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
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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 // as its type argument vector. 702 // as its type argument vector.
703 // SignatureType is used as the type of formal parameters representing a 703 // SignatureType is used as the type of formal parameters representing a
704 // function. 704 // function.
705 RawType* SignatureType() const; 705 RawType* SignatureType() const;
706 706
707 // Return the Type with type parameters declared by this class filled in with 707 // Return the Type with type parameters declared by this class filled in with
708 // dynamic and type parameters declared in superclasses filled in as declared 708 // dynamic and type parameters declared in superclasses filled in as declared
709 // in superclass clauses. 709 // in superclass clauses.
710 RawAbstractType* RareType() const; 710 RawAbstractType* RareType() const;
711 711
712 // Return the Type whose arguments are the type parameters declared by this
713 // class preceded by the type arguments declared for superclasses, etc.
714 // e.g. given
715 // class B<T, S>
716 // class C<R> extends B<R, int>
717 // C.DeclarationType() --> C [R, int, R]
718 RawAbstractType* DeclarationType() const;
719
712 RawLibrary* library() const { return raw_ptr()->library_; } 720 RawLibrary* library() const { return raw_ptr()->library_; }
713 void set_library(const Library& value) const; 721 void set_library(const Library& value) const;
714 722
715 // The type parameters (and their bounds) are specified as an array of 723 // The type parameters (and their bounds) are specified as an array of
716 // TypeParameter. 724 // TypeParameter.
717 RawTypeArguments* type_parameters() const { 725 RawTypeArguments* type_parameters() const {
718 return raw_ptr()->type_parameters_; 726 return raw_ptr()->type_parameters_;
719 } 727 }
720 void set_type_parameters(const TypeArguments& value) const; 728 void set_type_parameters(const TypeArguments& value) const;
721 intptr_t NumTypeParameters() const; 729 intptr_t NumTypeParameters() const;
(...skipping 5550 matching lines...) Expand 10 before | Expand all | Expand 10 after
6272 6280
6273 6281
6274 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6282 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6275 intptr_t index) { 6283 intptr_t index) {
6276 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6284 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6277 } 6285 }
6278 6286
6279 } // namespace dart 6287 } // namespace dart
6280 6288
6281 #endif // VM_OBJECT_H_ 6289 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698