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

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

Issue 2388153003: [modules] Implement namespace imports. (Closed)
Patch Set: Add comment on VisitModuleNamespaceImports. Created 4 years, 2 months 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-debug.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 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after
3272 CAST_ACCESSOR(JSBoundFunction) 3272 CAST_ACCESSOR(JSBoundFunction)
3273 CAST_ACCESSOR(JSDataView) 3273 CAST_ACCESSOR(JSDataView)
3274 CAST_ACCESSOR(JSDate) 3274 CAST_ACCESSOR(JSDate)
3275 CAST_ACCESSOR(JSFunction) 3275 CAST_ACCESSOR(JSFunction)
3276 CAST_ACCESSOR(JSGeneratorObject) 3276 CAST_ACCESSOR(JSGeneratorObject)
3277 CAST_ACCESSOR(JSGlobalObject) 3277 CAST_ACCESSOR(JSGlobalObject)
3278 CAST_ACCESSOR(JSGlobalProxy) 3278 CAST_ACCESSOR(JSGlobalProxy)
3279 CAST_ACCESSOR(JSMap) 3279 CAST_ACCESSOR(JSMap)
3280 CAST_ACCESSOR(JSMapIterator) 3280 CAST_ACCESSOR(JSMapIterator)
3281 CAST_ACCESSOR(JSMessageObject) 3281 CAST_ACCESSOR(JSMessageObject)
3282 CAST_ACCESSOR(JSModuleNamespace)
3282 CAST_ACCESSOR(JSObject) 3283 CAST_ACCESSOR(JSObject)
3283 CAST_ACCESSOR(JSProxy) 3284 CAST_ACCESSOR(JSProxy)
3284 CAST_ACCESSOR(JSReceiver) 3285 CAST_ACCESSOR(JSReceiver)
3285 CAST_ACCESSOR(JSRegExp) 3286 CAST_ACCESSOR(JSRegExp)
3286 CAST_ACCESSOR(JSSet) 3287 CAST_ACCESSOR(JSSet)
3287 CAST_ACCESSOR(JSSetIterator) 3288 CAST_ACCESSOR(JSSetIterator)
3288 CAST_ACCESSOR(JSStringIterator) 3289 CAST_ACCESSOR(JSStringIterator)
3289 CAST_ACCESSOR(JSTypedArray) 3290 CAST_ACCESSOR(JSTypedArray)
3290 CAST_ACCESSOR(JSValue) 3291 CAST_ACCESSOR(JSValue)
3291 CAST_ACCESSOR(JSWeakCollection) 3292 CAST_ACCESSOR(JSWeakCollection)
(...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after
5705 ACCESSORS(PrototypeInfo, prototype_users, Object, kPrototypeUsersOffset) 5706 ACCESSORS(PrototypeInfo, prototype_users, Object, kPrototypeUsersOffset)
5706 ACCESSORS(PrototypeInfo, object_create_map, Object, kObjectCreateMap) 5707 ACCESSORS(PrototypeInfo, object_create_map, Object, kObjectCreateMap)
5707 SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset) 5708 SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset)
5708 ACCESSORS(PrototypeInfo, validity_cell, Object, kValidityCellOffset) 5709 ACCESSORS(PrototypeInfo, validity_cell, Object, kValidityCellOffset)
5709 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset) 5710 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset)
5710 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit) 5711 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit)
5711 5712
5712 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) 5713 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset)
5713 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) 5714 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset)
5714 5715
5716 ACCESSORS(JSModuleNamespace, module, Module, kModuleOffset)
5717
5715 ACCESSORS(Module, code, Object, kCodeOffset) 5718 ACCESSORS(Module, code, Object, kCodeOffset)
5716 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset) 5719 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset)
5720 ACCESSORS(Module, module_namespace, HeapObject, kModuleNamespaceOffset)
5717 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset) 5721 ACCESSORS(Module, requested_modules, FixedArray, kRequestedModulesOffset)
5718 SMI_ACCESSORS(Module, flags, kFlagsOffset) 5722 SMI_ACCESSORS(Module, flags, kFlagsOffset)
5719 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit) 5723 BOOL_ACCESSORS(Module, flags, evaluated, kEvaluatedBit)
5720 ACCESSORS(Module, embedder_data, Object, kEmbedderDataOffset) 5724 ACCESSORS(Module, embedder_data, Object, kEmbedderDataOffset)
5721 5725
5722 SharedFunctionInfo* Module::shared() const { 5726 SharedFunctionInfo* Module::shared() const {
5723 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code()) 5727 return code()->IsSharedFunctionInfo() ? SharedFunctionInfo::cast(code())
5724 : JSFunction::cast(code())->shared(); 5728 : JSFunction::cast(code())->shared();
5725 } 5729 }
5726 5730
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
6667 } 6671 }
6668 6672
6669 bool JSGeneratorObject::is_closed() const { 6673 bool JSGeneratorObject::is_closed() const {
6670 return continuation() == kGeneratorClosed; 6674 return continuation() == kGeneratorClosed;
6671 } 6675 }
6672 6676
6673 bool JSGeneratorObject::is_executing() const { 6677 bool JSGeneratorObject::is_executing() const {
6674 return continuation() == kGeneratorExecuting; 6678 return continuation() == kGeneratorExecuting;
6675 } 6679 }
6676 6680
6681 TYPE_CHECKER(JSModuleNamespace, JS_MODULE_NAMESPACE_TYPE)
6682
6677 ACCESSORS(JSValue, value, Object, kValueOffset) 6683 ACCESSORS(JSValue, value, Object, kValueOffset)
6678 6684
6679 6685
6680 HeapNumber* HeapNumber::cast(Object* object) { 6686 HeapNumber* HeapNumber::cast(Object* object) {
6681 SLOW_DCHECK(object->IsHeapNumber() || object->IsMutableHeapNumber()); 6687 SLOW_DCHECK(object->IsHeapNumber() || object->IsMutableHeapNumber());
6682 return reinterpret_cast<HeapNumber*>(object); 6688 return reinterpret_cast<HeapNumber*>(object);
6683 } 6689 }
6684 6690
6685 6691
6686 const HeapNumber* HeapNumber::cast(const Object* object) { 6692 const HeapNumber* HeapNumber::cast(const Object* object) {
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
8319 #undef WRITE_INT64_FIELD 8325 #undef WRITE_INT64_FIELD
8320 #undef READ_BYTE_FIELD 8326 #undef READ_BYTE_FIELD
8321 #undef WRITE_BYTE_FIELD 8327 #undef WRITE_BYTE_FIELD
8322 #undef NOBARRIER_READ_BYTE_FIELD 8328 #undef NOBARRIER_READ_BYTE_FIELD
8323 #undef NOBARRIER_WRITE_BYTE_FIELD 8329 #undef NOBARRIER_WRITE_BYTE_FIELD
8324 8330
8325 } // namespace internal 8331 } // namespace internal
8326 } // namespace v8 8332 } // namespace v8
8327 8333
8328 #endif // V8_OBJECTS_INL_H_ 8334 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698