Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: src/objects-inl.h

Issue 2465283004: [modules] Maintain array of cells for imports and local exports. (Closed)
Patch Set: Rename parameter also in header file. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698