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 5697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5708 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) | 5708 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) |
5709 | 5709 |
5710 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) | 5710 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) |
5711 | 5711 |
5712 ACCESSORS(Module, code, Object, kCodeOffset) | 5712 ACCESSORS(Module, code, Object, kCodeOffset) |
5713 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) | 5713 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) |
5714 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) | 5714 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) |
5715 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) | 5715 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) |
5716 SMI_ACCESSORS(Module, flags, kFlagsOffset) | 5716 SMI_ACCESSORS(Module, flags, kFlagsOffset) |
5717 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit) | 5717 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit) |
| 5718 ACCESSORS(Module, embedder_data, Object, kEmbedderDataOffset) |
5718 SMI_ACCESSORS(Module, hash, kHashOffset) | 5719 SMI_ACCESSORS(Module, hash, kHashOffset) |
5719 | 5720 |
5720 SharedFunctionInfo* Module::shared() const { | 5721 SharedFunctionInfo* Module::shared() const { |
5721 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code()) | 5722 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code()) |
5722 : JSFunction::cast(code())->shared(); | 5723 : JSFunction::cast(code())->shared(); |
5723 } | 5724 } |
5724 | 5725 |
5725 ModuleInfo* Module::info() const { | 5726 ModuleInfo* Module::info() const { |
5726 return shared()->scope_info()->ModuleDescriptorInfo(); | 5727 return shared()->scope_info()->ModuleDescriptorInfo(); |
5727 } | 5728 } |
(...skipping 2597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8325 #undef WRITE_INT64_FIELD | 8326 #undef WRITE_INT64_FIELD |
8326 #undef READ_BYTE_FIELD | 8327 #undef READ_BYTE_FIELD |
8327 #undef WRITE_BYTE_FIELD | 8328 #undef WRITE_BYTE_FIELD |
8328 #undef NOBARRIER_READ_BYTE_FIELD | 8329 #undef NOBARRIER_READ_BYTE_FIELD |
8329 #undef NOBARRIER_WRITE_BYTE_FIELD | 8330 #undef NOBARRIER_WRITE_BYTE_FIELD |
8330 | 8331 |
8331 } // namespace internal | 8332 } // namespace internal |
8332 } // namespace v8 | 8333 } // namespace v8 |
8333 | 8334 |
8334 #endif // V8_OBJECTS_INL_H_ | 8335 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |