| 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 5743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5754 kConstantValuesOffset) | 5754 kConstantValuesOffset) |
| 5755 | 5755 |
| 5756 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) | 5756 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) |
| 5757 | 5757 |
| 5758 ACCESSORS(Module, code, Object, kCodeOffset) | 5758 ACCESSORS(Module, code, Object, kCodeOffset) |
| 5759 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) | 5759 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) |
| 5760 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset) | 5760 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset) |
| 5761 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset) | 5761 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset) |
| 5762 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) | 5762 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) |
| 5763 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) | 5763 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) |
| 5764 ACCESSORS(Module, script, Script, kScriptOffset) |
| 5764 SMI_ACCESSORS(Module, hash, kHashOffset) | 5765 SMI_ACCESSORS(Module, hash, kHashOffset) |
| 5765 | 5766 |
| 5766 bool Module::evaluated() const { return code()->IsModuleInfo(); } | 5767 bool Module::evaluated() const { return code()->IsModuleInfo(); } |
| 5767 | 5768 |
| 5768 void Module::set_evaluated() { | 5769 void Module::set_evaluated() { |
| 5769 DCHECK(instantiated()); | 5770 DCHECK(instantiated()); |
| 5770 DCHECK(!evaluated()); | 5771 DCHECK(!evaluated()); |
| 5771 return set_code( | 5772 return set_code( |
| 5772 JSFunction::cast(code())->shared()->scope_info()->ModuleDescriptorInfo()); | 5773 JSFunction::cast(code())->shared()->scope_info()->ModuleDescriptorInfo()); |
| 5773 } | 5774 } |
| (...skipping 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8376 #undef WRITE_INT64_FIELD | 8377 #undef WRITE_INT64_FIELD |
| 8377 #undef READ_BYTE_FIELD | 8378 #undef READ_BYTE_FIELD |
| 8378 #undef WRITE_BYTE_FIELD | 8379 #undef WRITE_BYTE_FIELD |
| 8379 #undef NOBARRIER_READ_BYTE_FIELD | 8380 #undef NOBARRIER_READ_BYTE_FIELD |
| 8380 #undef NOBARRIER_WRITE_BYTE_FIELD | 8381 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8381 | 8382 |
| 8382 } // namespace internal | 8383 } // namespace internal |
| 8383 } // namespace v8 | 8384 } // namespace v8 |
| 8384 | 8385 |
| 8385 #endif // V8_OBJECTS_INL_H_ | 8386 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |