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

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

Issue 2449783006: Add a native data property that replaces itself with a real data property (Closed)
Patch Set: Created 4 years, 1 month 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 7706 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« src/accessors.cc ('K') | « src/objects.cc ('k') | test/cctest/heap/test-alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698