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

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

Issue 20216002: Make ClassMirror.typeVariables lazy and convert dependencies to native code. (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
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 5881 matching lines...) Expand 10 before | Expand all | Expand 10 after
5892 } 5892 }
5893 5893
5894 RawClass* GetClassReferent() const; 5894 RawClass* GetClassReferent() const;
5895 5895
5896 RawField* GetFieldReferent() const; 5896 RawField* GetFieldReferent() const;
5897 5897
5898 RawFunction* GetFunctionReferent() const; 5898 RawFunction* GetFunctionReferent() const;
5899 5899
5900 RawLibrary* GetLibraryReferent() const; 5900 RawLibrary* GetLibraryReferent() const;
5901 5901
5902 RawTypeParameter* GetTypeParameterReferent() const;
5903
5902 static RawMirrorReference* New(const Object& referent, 5904 static RawMirrorReference* New(const Object& referent,
5903 Heap::Space space = Heap::kNew); 5905 Heap::Space space = Heap::kNew);
5904 5906
5905 static intptr_t InstanceSize() { 5907 static intptr_t InstanceSize() {
5906 return RoundedAllocationSize(sizeof(RawMirrorReference)); 5908 return RoundedAllocationSize(sizeof(RawMirrorReference));
5907 } 5909 }
5908 5910
5909 private: 5911 private:
5910 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance); 5912 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance);
5911 friend class Class; 5913 friend class Class;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
6031 6033
6032 6034
6033 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6035 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6034 intptr_t index) { 6036 intptr_t index) {
6035 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6037 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6036 } 6038 }
6037 6039
6038 } // namespace dart 6040 } // namespace dart
6039 6041
6040 #endif // VM_OBJECT_H_ 6042 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698