| 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 5879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5890 class MirrorReference : public Instance { | 5890 class MirrorReference : public Instance { |
| 5891 public: | 5891 public: |
| 5892 RawObject* referent() const { | 5892 RawObject* referent() const { |
| 5893 return raw_ptr()->referent_; | 5893 return raw_ptr()->referent_; |
| 5894 } | 5894 } |
| 5895 | 5895 |
| 5896 void set_referent(const Object& referent) const { | 5896 void set_referent(const Object& referent) const { |
| 5897 StorePointer(&raw_ptr()->referent_, referent.raw()); | 5897 StorePointer(&raw_ptr()->referent_, referent.raw()); |
| 5898 } | 5898 } |
| 5899 | 5899 |
| 5900 RawAbstractType* GetAbstractTypeReferent() const; |
| 5901 |
| 5900 RawClass* GetClassReferent() const; | 5902 RawClass* GetClassReferent() const; |
| 5901 | 5903 |
| 5902 RawField* GetFieldReferent() const; | 5904 RawField* GetFieldReferent() const; |
| 5903 | 5905 |
| 5904 RawFunction* GetFunctionReferent() const; | 5906 RawFunction* GetFunctionReferent() const; |
| 5905 | 5907 |
| 5906 RawLibrary* GetLibraryReferent() const; | 5908 RawLibrary* GetLibraryReferent() const; |
| 5907 | 5909 |
| 5908 RawTypeParameter* GetTypeParameterReferent() const; | 5910 RawTypeParameter* GetTypeParameterReferent() const; |
| 5909 | 5911 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6039 | 6041 |
| 6040 | 6042 |
| 6041 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6043 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6042 intptr_t index) { | 6044 intptr_t index) { |
| 6043 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6045 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6044 } | 6046 } |
| 6045 | 6047 |
| 6046 } // namespace dart | 6048 } // namespace dart |
| 6047 | 6049 |
| 6048 #endif // VM_OBJECT_H_ | 6050 #endif // VM_OBJECT_H_ |
| OLD | NEW |