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

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

Issue 19856003: Inline create parameter mirror list functionality. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 5878 matching lines...) Expand 10 before | Expand all | Expand 10 after
5889 RawClass* GetClassReferent() const; 5889 RawClass* GetClassReferent() const;
5890 5890
5891 RawField* GetFieldReferent() const; 5891 RawField* GetFieldReferent() const;
5892 5892
5893 RawFunction* GetFunctionReferent() const; 5893 RawFunction* GetFunctionReferent() const;
5894 5894
5895 RawLibrary* GetLibraryReferent() const; 5895 RawLibrary* GetLibraryReferent() const;
5896 5896
5897 static RawMirrorReference* New(Heap::Space space = Heap::kNew); 5897 static RawMirrorReference* New(Heap::Space space = Heap::kNew);
5898 5898
5899 static RawMirrorReference* New(const Object& referent,
5900 Heap::Space space = Heap::kNew);
5901
5899 static intptr_t InstanceSize() { 5902 static intptr_t InstanceSize() {
5900 return RoundedAllocationSize(sizeof(RawMirrorReference)); 5903 return RoundedAllocationSize(sizeof(RawMirrorReference));
5901 } 5904 }
5902 5905
5903 private: 5906 private:
5904 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance); 5907 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance);
5905 friend class Class; 5908 friend class Class;
5906 }; 5909 };
5907 5910
5908 5911
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
6025 6028
6026 6029
6027 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6030 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6028 intptr_t index) { 6031 intptr_t index) {
6029 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6032 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6030 } 6033 }
6031 6034
6032 } // namespace dart 6035 } // namespace dart
6033 6036
6034 #endif // VM_OBJECT_H_ 6037 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698