| 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 | 648 |
| 649 bool is_finalized() const { | 649 bool is_finalized() const { |
| 650 return raw_ptr()->class_state_ == RawClass::kFinalized; | 650 return raw_ptr()->class_state_ == RawClass::kFinalized; |
| 651 } | 651 } |
| 652 void set_is_finalized() const; | 652 void set_is_finalized() const; |
| 653 | 653 |
| 654 bool is_prefinalized() const { | 654 bool is_prefinalized() const { |
| 655 return raw_ptr()->class_state_ == RawClass::kPreFinalized; | 655 return raw_ptr()->class_state_ == RawClass::kPreFinalized; |
| 656 } | 656 } |
| 657 | 657 |
| 658 void set_is_prefinalized() const; |
| 659 |
| 658 bool is_const() const { | 660 bool is_const() const { |
| 659 return raw_ptr()->is_const_; | 661 return raw_ptr()->is_const_; |
| 660 } | 662 } |
| 661 void set_is_const() const; | 663 void set_is_const() const; |
| 662 | 664 |
| 663 int num_native_fields() const { | 665 int num_native_fields() const { |
| 664 return raw_ptr()->num_native_fields_; | 666 return raw_ptr()->num_native_fields_; |
| 665 } | 667 } |
| 666 void set_num_native_fields(int value) const { | 668 void set_num_native_fields(int value) const { |
| 667 raw_ptr()->num_native_fields_ = value; | 669 raw_ptr()->num_native_fields_ = value; |
| (...skipping 4223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4891 } | 4893 } |
| 4892 | 4894 |
| 4893 | 4895 |
| 4894 intptr_t Stackmap::SizeInBits() const { | 4896 intptr_t Stackmap::SizeInBits() const { |
| 4895 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 4897 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 4896 } | 4898 } |
| 4897 | 4899 |
| 4898 } // namespace dart | 4900 } // namespace dart |
| 4899 | 4901 |
| 4900 #endif // VM_OBJECT_H_ | 4902 #endif // VM_OBJECT_H_ |
| OLD | NEW |