| 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 5763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5774 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) | 5774 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) |
| 5775 | 5775 |
| 5776 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) | 5776 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) |
| 5777 | 5777 |
| 5778 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset) | 5778 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset) |
| 5779 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset) | 5779 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset) |
| 5780 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset) | 5780 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset) |
| 5781 | 5781 |
| 5782 ACCESSORS(Module, code, Object, kCodeOffset) | 5782 ACCESSORS(Module, code, Object, kCodeOffset) |
| 5783 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) | 5783 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) |
| 5784 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset) |
| 5785 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset) |
| 5784 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) | 5786 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) |
| 5785 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) | 5787 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) |
| 5786 SMI_ACCESSORS(Module, hash, kHashOffset) | 5788 SMI_ACCESSORS(Module, hash, kHashOffset) |
| 5787 | 5789 |
| 5788 bool Module::evaluated() const { return code()->IsModuleInfo(); } | 5790 bool Module::evaluated() const { return code()->IsModuleInfo(); } |
| 5789 | 5791 |
| 5790 void Module::set_evaluated() { | 5792 void Module::set_evaluated() { |
| 5791 DCHECK(instantiated()); | 5793 DCHECK(instantiated()); |
| 5792 DCHECK(!evaluated()); | 5794 DCHECK(!evaluated()); |
| 5793 return set_code( | 5795 return set_code( |
| (...skipping 2628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8422 #undef WRITE_INT64_FIELD | 8424 #undef WRITE_INT64_FIELD |
| 8423 #undef READ_BYTE_FIELD | 8425 #undef READ_BYTE_FIELD |
| 8424 #undef WRITE_BYTE_FIELD | 8426 #undef WRITE_BYTE_FIELD |
| 8425 #undef NOBARRIER_READ_BYTE_FIELD | 8427 #undef NOBARRIER_READ_BYTE_FIELD |
| 8426 #undef NOBARRIER_WRITE_BYTE_FIELD | 8428 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8427 | 8429 |
| 8428 } // namespace internal | 8430 } // namespace internal |
| 8429 } // namespace v8 | 8431 } // namespace v8 |
| 8430 | 8432 |
| 8431 #endif // V8_OBJECTS_INL_H_ | 8433 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |