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

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

Issue 22292002: Reflection on generics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/bootstrap_natives.h ('k') | runtime/vm/object.cc » ('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 #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 5887 matching lines...) Expand 10 before | Expand all | Expand 10 after
5898 class MirrorReference : public Instance { 5898 class MirrorReference : public Instance {
5899 public: 5899 public:
5900 RawObject* referent() const { 5900 RawObject* referent() const {
5901 return raw_ptr()->referent_; 5901 return raw_ptr()->referent_;
5902 } 5902 }
5903 5903
5904 void set_referent(const Object& referent) const { 5904 void set_referent(const Object& referent) const {
5905 StorePointer(&raw_ptr()->referent_, referent.raw()); 5905 StorePointer(&raw_ptr()->referent_, referent.raw());
5906 } 5906 }
5907 5907
5908 RawAbstractType* GetAbstractTypeReferent() const;
5909
5908 RawClass* GetClassReferent() const; 5910 RawClass* GetClassReferent() const;
5909 5911
5910 RawField* GetFieldReferent() const; 5912 RawField* GetFieldReferent() const;
5911 5913
5912 RawFunction* GetFunctionReferent() const; 5914 RawFunction* GetFunctionReferent() const;
5913 5915
5914 RawLibrary* GetLibraryReferent() const; 5916 RawLibrary* GetLibraryReferent() const;
5915 5917
5916 RawTypeParameter* GetTypeParameterReferent() const; 5918 RawTypeParameter* GetTypeParameterReferent() const;
5917 5919
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
6045 6047
6046 6048
6047 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6049 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6048 intptr_t index) { 6050 intptr_t index) {
6049 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6051 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6050 } 6052 }
6051 6053
6052 } // namespace dart 6054 } // namespace dart
6053 6055
6054 #endif // VM_OBJECT_H_ 6056 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698