| 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 3803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3814 public: | 3814 public: |
| 3815 static intptr_t type_class_offset() { | 3815 static intptr_t type_class_offset() { |
| 3816 return OFFSET_OF(RawType, type_class_); | 3816 return OFFSET_OF(RawType, type_class_); |
| 3817 } | 3817 } |
| 3818 virtual bool IsFinalized() const { | 3818 virtual bool IsFinalized() const { |
| 3819 return | 3819 return |
| 3820 (raw_ptr()->type_state_ == RawType::kFinalizedInstantiated) || | 3820 (raw_ptr()->type_state_ == RawType::kFinalizedInstantiated) || |
| 3821 (raw_ptr()->type_state_ == RawType::kFinalizedUninstantiated); | 3821 (raw_ptr()->type_state_ == RawType::kFinalizedUninstantiated); |
| 3822 } | 3822 } |
| 3823 void SetIsFinalized() const; | 3823 void SetIsFinalized() const; |
| 3824 void ResetIsFinalized() const; // Ignore current state and set again. |
| 3824 virtual bool IsBeingFinalized() const { | 3825 virtual bool IsBeingFinalized() const { |
| 3825 return raw_ptr()->type_state_ == RawType::kBeingFinalized; | 3826 return raw_ptr()->type_state_ == RawType::kBeingFinalized; |
| 3826 } | 3827 } |
| 3827 void set_is_being_finalized() const; | 3828 void set_is_being_finalized() const; |
| 3828 virtual bool IsMalformed() const; | 3829 virtual bool IsMalformed() const; |
| 3829 virtual RawError* malformed_error() const; | 3830 virtual RawError* malformed_error() const; |
| 3830 virtual void set_malformed_error(const Error& value) const; | 3831 virtual void set_malformed_error(const Error& value) const; |
| 3831 virtual bool IsResolved() const; // Class and all arguments classes resolved. | 3832 virtual bool IsResolved() const; // Class and all arguments classes resolved. |
| 3832 virtual bool HasResolvedTypeClass() const; // Own type class resolved. | 3833 virtual bool HasResolvedTypeClass() const; // Own type class resolved. |
| 3833 virtual RawClass* type_class() const; | 3834 virtual RawClass* type_class() const; |
| (...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6033 | 6034 |
| 6034 | 6035 |
| 6035 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6036 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6036 intptr_t index) { | 6037 intptr_t index) { |
| 6037 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6038 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6038 } | 6039 } |
| 6039 | 6040 |
| 6040 } // namespace dart | 6041 } // namespace dart |
| 6041 | 6042 |
| 6042 #endif // VM_OBJECT_H_ | 6043 #endif // VM_OBJECT_H_ |
| OLD | NEW |