Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: src/objects-inl.h

Issue 1993633002: Version 5.1.281.41 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7207 matching lines...) Expand 10 before | Expand all | Expand 10 after
7218 7218
7219 bool AccessorInfo::is_special_data_property() { 7219 bool AccessorInfo::is_special_data_property() {
7220 return BooleanBit::get(flag(), kSpecialDataProperty); 7220 return BooleanBit::get(flag(), kSpecialDataProperty);
7221 } 7221 }
7222 7222
7223 7223
7224 void AccessorInfo::set_is_special_data_property(bool value) { 7224 void AccessorInfo::set_is_special_data_property(bool value) {
7225 set_flag(BooleanBit::set(flag(), kSpecialDataProperty, value)); 7225 set_flag(BooleanBit::set(flag(), kSpecialDataProperty, value));
7226 } 7226 }
7227 7227
7228 bool AccessorInfo::is_sloppy() { return BooleanBit::get(flag(), kIsSloppy); }
7229
7230 void AccessorInfo::set_is_sloppy(bool value) {
7231 set_flag(BooleanBit::set(flag(), kIsSloppy, value));
7232 }
7228 7233
7229 PropertyAttributes AccessorInfo::property_attributes() { 7234 PropertyAttributes AccessorInfo::property_attributes() {
7230 return AttributesField::decode(static_cast<uint32_t>(flag())); 7235 return AttributesField::decode(static_cast<uint32_t>(flag()));
7231 } 7236 }
7232 7237
7233 7238
7234 void AccessorInfo::set_property_attributes(PropertyAttributes attributes) { 7239 void AccessorInfo::set_property_attributes(PropertyAttributes attributes) {
7235 set_flag(AttributesField::update(flag(), attributes)); 7240 set_flag(AttributesField::update(flag(), attributes));
7236 } 7241 }
7237 7242
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
7854 #undef WRITE_INT64_FIELD 7859 #undef WRITE_INT64_FIELD
7855 #undef READ_BYTE_FIELD 7860 #undef READ_BYTE_FIELD
7856 #undef WRITE_BYTE_FIELD 7861 #undef WRITE_BYTE_FIELD
7857 #undef NOBARRIER_READ_BYTE_FIELD 7862 #undef NOBARRIER_READ_BYTE_FIELD
7858 #undef NOBARRIER_WRITE_BYTE_FIELD 7863 #undef NOBARRIER_WRITE_BYTE_FIELD
7859 7864
7860 } // namespace internal 7865 } // namespace internal
7861 } // namespace v8 7866 } // namespace v8
7862 7867
7863 #endif // V8_OBJECTS_INL_H_ 7868 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698