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

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

Issue 2534613002: [ic] Use validity cells to protect keyed element stores against object's prototype chain modificati… (Closed)
Patch Set: The fix Created 4 years 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 5769 matching lines...) Expand 10 before | Expand all | Expand 10 after
5780 } 5780 }
5781 5781
5782 ACCESSORS(PrototypeInfo, weak_cell, Object, kWeakCellOffset) 5782 ACCESSORS(PrototypeInfo, weak_cell, Object, kWeakCellOffset)
5783 ACCESSORS(PrototypeInfo, prototype_users, Object, kPrototypeUsersOffset) 5783 ACCESSORS(PrototypeInfo, prototype_users, Object, kPrototypeUsersOffset)
5784 ACCESSORS(PrototypeInfo, object_create_map, Object, kObjectCreateMap) 5784 ACCESSORS(PrototypeInfo, object_create_map, Object, kObjectCreateMap)
5785 SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset) 5785 SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset)
5786 ACCESSORS(PrototypeInfo, validity_cell, Object, kValidityCellOffset) 5786 ACCESSORS(PrototypeInfo, validity_cell, Object, kValidityCellOffset)
5787 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset) 5787 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset)
5788 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit) 5788 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit)
5789 5789
5790 ACCESSORS(Tuple3, value1, Object, kValue1Offset) 5790 ACCESSORS(Tuple2, value1, Object, kValue1Offset)
5791 ACCESSORS(Tuple3, value2, Object, kValue2Offset) 5791 ACCESSORS(Tuple2, value2, Object, kValue2Offset)
5792 ACCESSORS(Tuple3, value3, Object, kValue3Offset) 5792 ACCESSORS(Tuple3, value3, Object, kValue3Offset)
5793 5793
5794 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) 5794 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset)
5795 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) 5795 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset)
5796 5796
5797 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) 5797 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset)
5798 5798
5799 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset) 5799 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset)
5800 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset) 5800 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset)
5801 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset) 5801 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset)
(...skipping 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after
8463 #undef WRITE_INT64_FIELD 8463 #undef WRITE_INT64_FIELD
8464 #undef READ_BYTE_FIELD 8464 #undef READ_BYTE_FIELD
8465 #undef WRITE_BYTE_FIELD 8465 #undef WRITE_BYTE_FIELD
8466 #undef NOBARRIER_READ_BYTE_FIELD 8466 #undef NOBARRIER_READ_BYTE_FIELD
8467 #undef NOBARRIER_WRITE_BYTE_FIELD 8467 #undef NOBARRIER_WRITE_BYTE_FIELD
8468 8468
8469 } // namespace internal 8469 } // namespace internal
8470 } // namespace v8 8470 } // namespace v8
8471 8471
8472 #endif // V8_OBJECTS_INL_H_ 8472 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/ic/accessor-assembler.cc ('K') | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698