| 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 7200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7211 | 7211 |
| 7212 bool AccessorInfo::is_special_data_property() { | 7212 bool AccessorInfo::is_special_data_property() { |
| 7213 return BooleanBit::get(flag(), kSpecialDataProperty); | 7213 return BooleanBit::get(flag(), kSpecialDataProperty); |
| 7214 } | 7214 } |
| 7215 | 7215 |
| 7216 | 7216 |
| 7217 void AccessorInfo::set_is_special_data_property(bool value) { | 7217 void AccessorInfo::set_is_special_data_property(bool value) { |
| 7218 set_flag(BooleanBit::set(flag(), kSpecialDataProperty, value)); | 7218 set_flag(BooleanBit::set(flag(), kSpecialDataProperty, value)); |
| 7219 } | 7219 } |
| 7220 | 7220 |
| 7221 bool AccessorInfo::is_sloppy() { return BooleanBit::get(flag(), kIsSloppy); } |
| 7222 |
| 7223 void AccessorInfo::set_is_sloppy(bool value) { |
| 7224 set_flag(BooleanBit::set(flag(), kIsSloppy, value)); |
| 7225 } |
| 7221 | 7226 |
| 7222 PropertyAttributes AccessorInfo::property_attributes() { | 7227 PropertyAttributes AccessorInfo::property_attributes() { |
| 7223 return AttributesField::decode(static_cast<uint32_t>(flag())); | 7228 return AttributesField::decode(static_cast<uint32_t>(flag())); |
| 7224 } | 7229 } |
| 7225 | 7230 |
| 7226 | 7231 |
| 7227 void AccessorInfo::set_property_attributes(PropertyAttributes attributes) { | 7232 void AccessorInfo::set_property_attributes(PropertyAttributes attributes) { |
| 7228 set_flag(AttributesField::update(flag(), attributes)); | 7233 set_flag(AttributesField::update(flag(), attributes)); |
| 7229 } | 7234 } |
| 7230 | 7235 |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7846 #undef WRITE_INT64_FIELD | 7851 #undef WRITE_INT64_FIELD |
| 7847 #undef READ_BYTE_FIELD | 7852 #undef READ_BYTE_FIELD |
| 7848 #undef WRITE_BYTE_FIELD | 7853 #undef WRITE_BYTE_FIELD |
| 7849 #undef NOBARRIER_READ_BYTE_FIELD | 7854 #undef NOBARRIER_READ_BYTE_FIELD |
| 7850 #undef NOBARRIER_WRITE_BYTE_FIELD | 7855 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7851 | 7856 |
| 7852 } // namespace internal | 7857 } // namespace internal |
| 7853 } // namespace v8 | 7858 } // namespace v8 |
| 7854 | 7859 |
| 7855 #endif // V8_OBJECTS_INL_H_ | 7860 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |