OLD | NEW |
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 5699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5710 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit) | 5710 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit) |
5711 | 5711 |
5712 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) | 5712 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) |
5713 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) | 5713 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) |
5714 | 5714 |
5715 ACCESSORS(Module, code, Object, kCodeOffset) | 5715 ACCESSORS(Module, code, Object, kCodeOffset) |
5716 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) | 5716 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) |
5717 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) | 5717 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) |
5718 SMI_ACCESSORS(Module, flags, kFlagsOffset) | 5718 SMI_ACCESSORS(Module, flags, kFlagsOffset) |
5719 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit) | 5719 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit) |
5720 ACCESSORS(Module, embedder_data, Object, kEmbedderDataOffset) | |
5721 | 5720 |
5722 SharedFunctionInfo* Module::shared() const { | 5721 SharedFunctionInfo* Module::shared() const { |
5723 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code()) | 5722 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code()) |
5724 : JSFunction::cast(code())->shared(); | 5723 : JSFunction::cast(code())->shared(); |
5725 } | 5724 } |
5726 | 5725 |
5727 ModuleInfo* Module::info() const { | 5726 ModuleInfo* Module::info() const { |
5728 return shared()->scope_info()->ModuleDescriptorInfo(); | 5727 return shared()->scope_info()->ModuleDescriptorInfo(); |
5729 } | 5728 } |
5730 | 5729 |
(...skipping 2588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8319 #undef WRITE_INT64_FIELD | 8318 #undef WRITE_INT64_FIELD |
8320 #undef READ_BYTE_FIELD | 8319 #undef READ_BYTE_FIELD |
8321 #undef WRITE_BYTE_FIELD | 8320 #undef WRITE_BYTE_FIELD |
8322 #undef NOBARRIER_READ_BYTE_FIELD | 8321 #undef NOBARRIER_READ_BYTE_FIELD |
8323 #undef NOBARRIER_WRITE_BYTE_FIELD | 8322 #undef NOBARRIER_WRITE_BYTE_FIELD |
8324 | 8323 |
8325 } // namespace internal | 8324 } // namespace internal |
8326 } // namespace v8 | 8325 } // namespace v8 |
8327 | 8326 |
8328 #endif // V8_OBJECTS_INL_H_ | 8327 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |