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

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

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Re-cemment bytecode tests. 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 5791 matching lines...) Expand 10 before | Expand all | Expand 10 after
5802 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset) 5802 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset)
5803 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit) 5803 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit)
5804 5804
5805 ACCESSORS(Tuple2, value1, Object, kValue1Offset) 5805 ACCESSORS(Tuple2, value1, Object, kValue1Offset)
5806 ACCESSORS(Tuple2, value2, Object, kValue2Offset) 5806 ACCESSORS(Tuple2, value2, Object, kValue2Offset)
5807 ACCESSORS(Tuple3, value3, Object, kValue3Offset) 5807 ACCESSORS(Tuple3, value3, Object, kValue3Offset)
5808 5808
5809 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) 5809 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset)
5810 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) 5810 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset)
5811 5811
5812 SMI_ACCESSORS(ConstantElementsPair, elements_kind, kElementsKindOffset)
5813 ACCESSORS(ConstantElementsPair, constant_values, FixedArrayBase,
5814 kConstantValuesOffset)
5815
5812 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) 5816 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset)
5813 5817
5814 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset) 5818 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset)
5815 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset) 5819 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset)
5816 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset) 5820 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset)
5817 5821
5818 ACCESSORS(Module, code, Object, kCodeOffset) 5822 ACCESSORS(Module, code, Object, kCodeOffset)
5819 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) 5823 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset)
5820 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset) 5824 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset)
5821 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset) 5825 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset)
(...skipping 2663 matching lines...) Expand 10 before | Expand all | Expand 10 after
8485 #undef WRITE_INT64_FIELD 8489 #undef WRITE_INT64_FIELD
8486 #undef READ_BYTE_FIELD 8490 #undef READ_BYTE_FIELD
8487 #undef WRITE_BYTE_FIELD 8491 #undef WRITE_BYTE_FIELD
8488 #undef NOBARRIER_READ_BYTE_FIELD 8492 #undef NOBARRIER_READ_BYTE_FIELD
8489 #undef NOBARRIER_WRITE_BYTE_FIELD 8493 #undef NOBARRIER_WRITE_BYTE_FIELD
8490 8494
8491 } // namespace internal 8495 } // namespace internal
8492 } // namespace v8 8496 } // namespace v8
8493 8497
8494 #endif // V8_OBJECTS_INL_H_ 8498 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | src/objects-printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698