| 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 5696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5707 | 5707 |
| 5708 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) | 5708 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) |
| 5709 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) | 5709 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) |
| 5710 | 5710 |
| 5711 ACCESSORS(Module, code, Object, kCodeOffset) | 5711 ACCESSORS(Module, code, Object, kCodeOffset) |
| 5712 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) | 5712 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) |
| 5713 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) | 5713 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) |
| 5714 SMI_ACCESSORS(Module, flags, kFlagsOffset) | 5714 SMI_ACCESSORS(Module, flags, kFlagsOffset) |
| 5715 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit) | 5715 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit) |
| 5716 ACCESSORS(Module, embedder_data, Object, kEmbedderDataOffset) | 5716 ACCESSORS(Module, embedder_data, Object, kEmbedderDataOffset) |
| 5717 SMI_ACCESSORS(Module, hash, kHashOffset) |
| 5717 | 5718 |
| 5718 SharedFunctionInfo* Module::shared() const { | 5719 SharedFunctionInfo* Module::shared() const { |
| 5719 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code()) | 5720 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code()) |
| 5720 : JSFunction::cast(code())->shared(); | 5721 : JSFunction::cast(code())->shared(); |
| 5721 } | 5722 } |
| 5722 | 5723 |
| 5723 ModuleInfo* Module::info() const { | 5724 ModuleInfo* Module::info() const { |
| 5724 return shared()->scope_info()->ModuleDescriptorInfo(); | 5725 return shared()->scope_info()->ModuleDescriptorInfo(); |
| 5725 } | 5726 } |
| 5726 | 5727 |
| 5727 uint32_t Module::Hash() const { return Symbol::cast(shared()->name())->Hash(); } | |
| 5728 | |
| 5729 ACCESSORS(AccessorPair, getter, Object, kGetterOffset) | 5728 ACCESSORS(AccessorPair, getter, Object, kGetterOffset) |
| 5730 ACCESSORS(AccessorPair, setter, Object, kSetterOffset) | 5729 ACCESSORS(AccessorPair, setter, Object, kSetterOffset) |
| 5731 | 5730 |
| 5732 ACCESSORS(AccessCheckInfo, callback, Object, kCallbackOffset) | 5731 ACCESSORS(AccessCheckInfo, callback, Object, kCallbackOffset) |
| 5733 ACCESSORS(AccessCheckInfo, named_interceptor, Object, kNamedInterceptorOffset) | 5732 ACCESSORS(AccessCheckInfo, named_interceptor, Object, kNamedInterceptorOffset) |
| 5734 ACCESSORS(AccessCheckInfo, indexed_interceptor, Object, | 5733 ACCESSORS(AccessCheckInfo, indexed_interceptor, Object, |
| 5735 kIndexedInterceptorOffset) | 5734 kIndexedInterceptorOffset) |
| 5736 ACCESSORS(AccessCheckInfo, data, Object, kDataOffset) | 5735 ACCESSORS(AccessCheckInfo, data, Object, kDataOffset) |
| 5737 | 5736 |
| 5738 ACCESSORS(InterceptorInfo, getter, Object, kGetterOffset) | 5737 ACCESSORS(InterceptorInfo, getter, Object, kGetterOffset) |
| (...skipping 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8315 #undef WRITE_INT64_FIELD | 8314 #undef WRITE_INT64_FIELD |
| 8316 #undef READ_BYTE_FIELD | 8315 #undef READ_BYTE_FIELD |
| 8317 #undef WRITE_BYTE_FIELD | 8316 #undef WRITE_BYTE_FIELD |
| 8318 #undef NOBARRIER_READ_BYTE_FIELD | 8317 #undef NOBARRIER_READ_BYTE_FIELD |
| 8319 #undef NOBARRIER_WRITE_BYTE_FIELD | 8318 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8320 | 8319 |
| 8321 } // namespace internal | 8320 } // namespace internal |
| 8322 } // namespace v8 | 8321 } // namespace v8 |
| 8323 | 8322 |
| 8324 #endif // V8_OBJECTS_INL_H_ | 8323 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |