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

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

Issue 26344006: Substitution for type variables in mirrors on instantiated generics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 // 'F<T, R>(T, [b: B, c: C]) => R', then its signature type is a parameterized 700 // 'F<T, R>(T, [b: B, c: C]) => R', then its signature type is a parameterized
701 // type with this class as the type class and type parameters 'T' and 'R' 701 // type with this class as the type class and type parameters 'T' and 'R'
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 RawType* RareType() const; 710 RawAbstractType* RareType() const;
711 711
712 RawLibrary* library() const { return raw_ptr()->library_; } 712 RawLibrary* library() const { return raw_ptr()->library_; }
713 void set_library(const Library& value) const; 713 void set_library(const Library& value) const;
714 714
715 // The type parameters (and their bounds) are specified as an array of 715 // The type parameters (and their bounds) are specified as an array of
716 // TypeParameter. 716 // TypeParameter.
717 RawTypeArguments* type_parameters() const { 717 RawTypeArguments* type_parameters() const {
718 return raw_ptr()->type_parameters_; 718 return raw_ptr()->type_parameters_;
719 } 719 }
720 void set_type_parameters(const TypeArguments& value) const; 720 void set_type_parameters(const TypeArguments& value) const;
(...skipping 5529 matching lines...) Expand 10 before | Expand all | Expand 10 after
6250 6250
6251 6251
6252 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6252 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6253 intptr_t index) { 6253 intptr_t index) {
6254 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6254 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6255 } 6255 }
6256 6256
6257 } // namespace dart 6257 } // namespace dart
6258 6258
6259 #endif // VM_OBJECT_H_ 6259 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698