| 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 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1744 | 1744 |
| 1745 class PatchClass : public Object { | 1745 class PatchClass : public Object { |
| 1746 public: | 1746 public: |
| 1747 RawClass* patched_class() const { return raw_ptr()->patched_class_; } | 1747 RawClass* patched_class() const { return raw_ptr()->patched_class_; } |
| 1748 RawClass* source_class() const { return raw_ptr()->source_class_; } | 1748 RawClass* source_class() const { return raw_ptr()->source_class_; } |
| 1749 RawScript* Script() const; | 1749 RawScript* Script() const; |
| 1750 | 1750 |
| 1751 static intptr_t InstanceSize() { | 1751 static intptr_t InstanceSize() { |
| 1752 return RoundedAllocationSize(sizeof(RawPatchClass)); | 1752 return RoundedAllocationSize(sizeof(RawPatchClass)); |
| 1753 } | 1753 } |
| 1754 static bool IsInFullSnapshot(RawPatchClass* cls) { |
| 1755 NoSafepointScope no_safepoint; |
| 1756 return Class::IsInFullSnapshot(cls->ptr()->patched_class_); |
| 1757 } |
| 1754 | 1758 |
| 1755 static RawPatchClass* New(const Class& patched_class, | 1759 static RawPatchClass* New(const Class& patched_class, |
| 1756 const Class& source_class); | 1760 const Class& source_class); |
| 1757 | 1761 |
| 1758 private: | 1762 private: |
| 1759 void set_patched_class(const Class& value) const; | 1763 void set_patched_class(const Class& value) const; |
| 1760 void set_source_class(const Class& value) const; | 1764 void set_source_class(const Class& value) const; |
| 1761 | 1765 |
| 1762 static RawPatchClass* New(); | 1766 static RawPatchClass* New(); |
| 1763 | 1767 |
| (...skipping 6364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8128 | 8132 |
| 8129 | 8133 |
| 8130 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8134 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8131 intptr_t index) { | 8135 intptr_t index) { |
| 8132 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8136 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8133 } | 8137 } |
| 8134 | 8138 |
| 8135 } // namespace dart | 8139 } // namespace dart |
| 8136 | 8140 |
| 8137 #endif // VM_OBJECT_H_ | 8141 #endif // VM_OBJECT_H_ |
| OLD | NEW |