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

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
« no previous file with comments | « runtime/lib/mirrors.cc ('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 5880 matching lines...) Expand 10 before | Expand all | Expand 10 after
5891 } 5891 }
5892 5892
5893 RawClass* GetClassReferent() const; 5893 RawClass* GetClassReferent() const;
5894 5894
5895 RawField* GetFieldReferent() const; 5895 RawField* GetFieldReferent() const;
5896 5896
5897 RawFunction* GetFunctionReferent() const; 5897 RawFunction* GetFunctionReferent() const;
5898 5898
5899 RawLibrary* GetLibraryReferent() const; 5899 RawLibrary* GetLibraryReferent() const;
5900 5900
5901 static RawMirrorReference* New(Heap::Space space = Heap::kNew); 5901 static RawMirrorReference* New(const Object& referent,
5902 Heap::Space space = Heap::kNew);
5902 5903
5903 static intptr_t InstanceSize() { 5904 static intptr_t InstanceSize() {
5904 return RoundedAllocationSize(sizeof(RawMirrorReference)); 5905 return RoundedAllocationSize(sizeof(RawMirrorReference));
5905 } 5906 }
5906 5907
5907 private: 5908 private:
5908 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance); 5909 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance);
5909 friend class Class; 5910 friend class Class;
5910 }; 5911 };
5911 5912
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
6029 6030
6030 6031
6031 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6032 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6032 intptr_t index) { 6033 intptr_t index) {
6033 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6034 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6034 } 6035 }
6035 6036
6036 } // namespace dart 6037 } // namespace dart
6037 6038
6038 #endif // VM_OBJECT_H_ 6039 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698