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

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

Issue 1960663002: Convert primitive receivers for API property callbacks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates 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
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 7200 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« src/accessors.cc ('K') | « src/objects.cc ('k') | test/cctest/test-accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698