OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 7706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7717 | 7717 |
7718 bool AccessorInfo::is_special_data_property() { | 7718 bool AccessorInfo::is_special_data_property() { |
7719 return BooleanBit::get(flag(), kSpecialDataProperty); | 7719 return BooleanBit::get(flag(), kSpecialDataProperty); |
7720 } | 7720 } |
7721 | 7721 |
7722 | 7722 |
7723 void AccessorInfo::set_is_special_data_property(bool value) { | 7723 void AccessorInfo::set_is_special_data_property(bool value) { |
7724 set_flag(BooleanBit::set(flag(), kSpecialDataProperty, value)); | 7724 set_flag(BooleanBit::set(flag(), kSpecialDataProperty, value)); |
7725 } | 7725 } |
7726 | 7726 |
| 7727 bool AccessorInfo::replace_on_access() { |
| 7728 return BooleanBit::get(flag(), kReplaceOnAccess); |
| 7729 } |
| 7730 |
| 7731 void AccessorInfo::set_replace_on_access(bool value) { |
| 7732 set_flag(BooleanBit::set(flag(), kReplaceOnAccess, value)); |
| 7733 } |
| 7734 |
7727 bool AccessorInfo::is_sloppy() { return BooleanBit::get(flag(), kIsSloppy); } | 7735 bool AccessorInfo::is_sloppy() { return BooleanBit::get(flag(), kIsSloppy); } |
7728 | 7736 |
7729 void AccessorInfo::set_is_sloppy(bool value) { | 7737 void AccessorInfo::set_is_sloppy(bool value) { |
7730 set_flag(BooleanBit::set(flag(), kIsSloppy, value)); | 7738 set_flag(BooleanBit::set(flag(), kIsSloppy, value)); |
7731 } | 7739 } |
7732 | 7740 |
7733 PropertyAttributes AccessorInfo::property_attributes() { | 7741 PropertyAttributes AccessorInfo::property_attributes() { |
7734 return AttributesField::decode(static_cast<uint32_t>(flag())); | 7742 return AttributesField::decode(static_cast<uint32_t>(flag())); |
7735 } | 7743 } |
7736 | 7744 |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8423 #undef WRITE_INT64_FIELD | 8431 #undef WRITE_INT64_FIELD |
8424 #undef READ_BYTE_FIELD | 8432 #undef READ_BYTE_FIELD |
8425 #undef WRITE_BYTE_FIELD | 8433 #undef WRITE_BYTE_FIELD |
8426 #undef NOBARRIER_READ_BYTE_FIELD | 8434 #undef NOBARRIER_READ_BYTE_FIELD |
8427 #undef NOBARRIER_WRITE_BYTE_FIELD | 8435 #undef NOBARRIER_WRITE_BYTE_FIELD |
8428 | 8436 |
8429 } // namespace internal | 8437 } // namespace internal |
8430 } // namespace v8 | 8438 } // namespace v8 |
8431 | 8439 |
8432 #endif // V8_OBJECTS_INL_H_ | 8440 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |