| OLD | NEW |
| 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 5860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5871 RawObject* referent() const { | 5871 RawObject* referent() const { |
| 5872 return raw_ptr()->referent_; | 5872 return raw_ptr()->referent_; |
| 5873 } | 5873 } |
| 5874 | 5874 |
| 5875 void set_referent(const Object& referent) const { | 5875 void set_referent(const Object& referent) const { |
| 5876 StorePointer(&raw_ptr()->referent_, referent.raw()); | 5876 StorePointer(&raw_ptr()->referent_, referent.raw()); |
| 5877 } | 5877 } |
| 5878 | 5878 |
| 5879 RawClass* GetClassReferent() const; | 5879 RawClass* GetClassReferent() const; |
| 5880 | 5880 |
| 5881 RawField* GetFieldReferent() const; |
| 5882 |
| 5881 RawFunction* GetFunctionReferent() const; | 5883 RawFunction* GetFunctionReferent() const; |
| 5882 | 5884 |
| 5883 RawLibrary* GetLibraryReferent() const; | 5885 RawLibrary* GetLibraryReferent() const; |
| 5884 | 5886 |
| 5885 static RawMirrorReference* New(Heap::Space space = Heap::kNew); | 5887 static RawMirrorReference* New(Heap::Space space = Heap::kNew); |
| 5886 | 5888 |
| 5887 static intptr_t InstanceSize() { | 5889 static intptr_t InstanceSize() { |
| 5888 return RoundedAllocationSize(sizeof(RawMirrorReference)); | 5890 return RoundedAllocationSize(sizeof(RawMirrorReference)); |
| 5889 } | 5891 } |
| 5890 | 5892 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6013 | 6015 |
| 6014 | 6016 |
| 6015 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6017 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6016 intptr_t index) { | 6018 intptr_t index) { |
| 6017 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6019 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6018 } | 6020 } |
| 6019 | 6021 |
| 6020 } // namespace dart | 6022 } // namespace dart |
| 6021 | 6023 |
| 6022 #endif // VM_OBJECT_H_ | 6024 #endif // VM_OBJECT_H_ |
| OLD | NEW |