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 7037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7048 bool AccessorInfo::all_can_write() { | 7048 bool AccessorInfo::all_can_write() { |
7049 return BooleanBit::get(flag(), kAllCanWriteBit); | 7049 return BooleanBit::get(flag(), kAllCanWriteBit); |
7050 } | 7050 } |
7051 | 7051 |
7052 | 7052 |
7053 void AccessorInfo::set_all_can_write(bool value) { | 7053 void AccessorInfo::set_all_can_write(bool value) { |
7054 set_flag(BooleanBit::set(flag(), kAllCanWriteBit, value)); | 7054 set_flag(BooleanBit::set(flag(), kAllCanWriteBit, value)); |
7055 } | 7055 } |
7056 | 7056 |
7057 | 7057 |
7058 bool AccessorInfo::is_special_data_property() { | |
7059 return BooleanBit::get(flag(), kSpecialDataProperty); | |
7060 } | |
7061 | |
7062 | |
7063 void AccessorInfo::set_is_special_data_property(bool value) { | |
7064 set_flag(BooleanBit::set(flag(), kSpecialDataProperty, value)); | |
7065 } | |
7066 | |
7067 | |
7068 PropertyAttributes AccessorInfo::property_attributes() { | 7058 PropertyAttributes AccessorInfo::property_attributes() { |
7069 return AttributesField::decode(static_cast<uint32_t>(flag()->value())); | 7059 return AttributesField::decode(static_cast<uint32_t>(flag()->value())); |
7070 } | 7060 } |
7071 | 7061 |
7072 | 7062 |
7073 void AccessorInfo::set_property_attributes(PropertyAttributes attributes) { | 7063 void AccessorInfo::set_property_attributes(PropertyAttributes attributes) { |
7074 set_flag(Smi::FromInt(AttributesField::update(flag()->value(), attributes))); | 7064 set_flag(Smi::FromInt(AttributesField::update(flag()->value(), attributes))); |
7075 } | 7065 } |
7076 | 7066 |
7077 | 7067 |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7627 #undef READ_SHORT_FIELD | 7617 #undef READ_SHORT_FIELD |
7628 #undef WRITE_SHORT_FIELD | 7618 #undef WRITE_SHORT_FIELD |
7629 #undef READ_BYTE_FIELD | 7619 #undef READ_BYTE_FIELD |
7630 #undef WRITE_BYTE_FIELD | 7620 #undef WRITE_BYTE_FIELD |
7631 #undef NOBARRIER_READ_BYTE_FIELD | 7621 #undef NOBARRIER_READ_BYTE_FIELD |
7632 #undef NOBARRIER_WRITE_BYTE_FIELD | 7622 #undef NOBARRIER_WRITE_BYTE_FIELD |
7633 | 7623 |
7634 } } // namespace v8::internal | 7624 } } // namespace v8::internal |
7635 | 7625 |
7636 #endif // V8_OBJECTS_INL_H_ | 7626 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |