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

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

Issue 2465283004: [modules] Maintain array of cells for imports and local exports. (Closed)
Patch Set: Various changes. 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
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 5764 matching lines...) Expand 10 before | Expand all | Expand 10 after
5775 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) 5775 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset)
5776 5776
5777 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset) 5777 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset)
5778 5778
5779 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset) 5779 ACCESSORS(JSFixedArrayIterator, array, FixedArray, kArrayOffset)
5780 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset) 5780 SMI_ACCESSORS(JSFixedArrayIterator, index, kIndexOffset)
5781 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset) 5781 ACCESSORS(JSFixedArrayIterator, initial_next, JSFunction, kNextOffset)
5782 5782
5783 ACCESSORS(Module, code, Object, kCodeOffset) 5783 ACCESSORS(Module, code, Object, kCodeOffset)
5784 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) 5784 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset)
5785 ACCESSORS(Module, regular_exports, FixedArray, kRegularExportsOffset)
5786 ACCESSORS(Module, regular_imports, FixedArray, kRegularImportsOffset)
5785 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset) 5787 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset)
5786 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) 5788 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset)
5787 SMI_ACCESSORS(Module, hash, kHashOffset) 5789 SMI_ACCESSORS(Module, hash, kHashOffset)
5788 5790
5789 bool Module::evaluated() const { return code()->IsModuleInfo(); } 5791 bool Module::evaluated() const { return code()->IsModuleInfo(); }
5790 5792
5791 void Module::set_evaluated() { 5793 void Module::set_evaluated() {
5792 DCHECK(instantiated()); 5794 DCHECK(instantiated());
5793 DCHECK(!evaluated()); 5795 DCHECK(!evaluated());
5794 return set_code( 5796 return set_code(
(...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after
8416 #undef WRITE_INT64_FIELD 8418 #undef WRITE_INT64_FIELD
8417 #undef READ_BYTE_FIELD 8419 #undef READ_BYTE_FIELD
8418 #undef WRITE_BYTE_FIELD 8420 #undef WRITE_BYTE_FIELD
8419 #undef NOBARRIER_READ_BYTE_FIELD 8421 #undef NOBARRIER_READ_BYTE_FIELD
8420 #undef NOBARRIER_WRITE_BYTE_FIELD 8422 #undef NOBARRIER_WRITE_BYTE_FIELD
8421 8423
8422 } // namespace internal 8424 } // namespace internal
8423 } // namespace v8 8425 } // namespace v8
8424 8426
8425 #endif // V8_OBJECTS_INL_H_ 8427 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698