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

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

Issue 2345823002: [modules] Turn JSModule into Module. (Closed)
Patch Set: Cosmetics. Created 4 years, 3 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
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 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after
3269 CAST_ACCESSOR(JSBoundFunction) 3269 CAST_ACCESSOR(JSBoundFunction)
3270 CAST_ACCESSOR(JSDataView) 3270 CAST_ACCESSOR(JSDataView)
3271 CAST_ACCESSOR(JSDate) 3271 CAST_ACCESSOR(JSDate)
3272 CAST_ACCESSOR(JSFunction) 3272 CAST_ACCESSOR(JSFunction)
3273 CAST_ACCESSOR(JSGeneratorObject) 3273 CAST_ACCESSOR(JSGeneratorObject)
3274 CAST_ACCESSOR(JSGlobalObject) 3274 CAST_ACCESSOR(JSGlobalObject)
3275 CAST_ACCESSOR(JSGlobalProxy) 3275 CAST_ACCESSOR(JSGlobalProxy)
3276 CAST_ACCESSOR(JSMap) 3276 CAST_ACCESSOR(JSMap)
3277 CAST_ACCESSOR(JSMapIterator) 3277 CAST_ACCESSOR(JSMapIterator)
3278 CAST_ACCESSOR(JSMessageObject) 3278 CAST_ACCESSOR(JSMessageObject)
3279 CAST_ACCESSOR(JSModule)
3280 CAST_ACCESSOR(JSObject) 3279 CAST_ACCESSOR(JSObject)
3281 CAST_ACCESSOR(JSProxy) 3280 CAST_ACCESSOR(JSProxy)
3282 CAST_ACCESSOR(JSReceiver) 3281 CAST_ACCESSOR(JSReceiver)
3283 CAST_ACCESSOR(JSRegExp) 3282 CAST_ACCESSOR(JSRegExp)
3284 CAST_ACCESSOR(JSSet) 3283 CAST_ACCESSOR(JSSet)
3285 CAST_ACCESSOR(JSSetIterator) 3284 CAST_ACCESSOR(JSSetIterator)
3286 CAST_ACCESSOR(JSTypedArray) 3285 CAST_ACCESSOR(JSTypedArray)
3287 CAST_ACCESSOR(JSValue) 3286 CAST_ACCESSOR(JSValue)
3288 CAST_ACCESSOR(JSWeakCollection) 3287 CAST_ACCESSOR(JSWeakCollection)
3289 CAST_ACCESSOR(JSWeakMap) 3288 CAST_ACCESSOR(JSWeakMap)
(...skipping 2405 matching lines...) Expand 10 before | Expand all | Expand 10 after
5695 ACCESSORS(PrototypeInfo, prototype_users, Object, kPrototypeUsersOffset) 5694 ACCESSORS(PrototypeInfo, prototype_users, Object, kPrototypeUsersOffset)
5696 ACCESSORS(PrototypeInfo, object_create_map, Object, kObjectCreateMap) 5695 ACCESSORS(PrototypeInfo, object_create_map, Object, kObjectCreateMap)
5697 SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset) 5696 SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset)
5698 ACCESSORS(PrototypeInfo, validity_cell, Object, kValidityCellOffset) 5697 ACCESSORS(PrototypeInfo, validity_cell, Object, kValidityCellOffset)
5699 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset) 5698 SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset)
5700 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit) 5699 BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit)
5701 5700
5702 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset) 5701 ACCESSORS(ContextExtension, scope_info, ScopeInfo, kScopeInfoOffset)
5703 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset) 5702 ACCESSORS(ContextExtension, extension, Object, kExtensionOffset)
5704 5703
5704 ACCESSORS(Module, exports, ObjectHashTable, kExportsOffset)
5705
5705 ACCESSORS(AccessorPair, getter, Object, kGetterOffset) 5706 ACCESSORS(AccessorPair, getter, Object, kGetterOffset)
5706 ACCESSORS(AccessorPair, setter, Object, kSetterOffset) 5707 ACCESSORS(AccessorPair, setter, Object, kSetterOffset)
5707 5708
5708 ACCESSORS(AccessCheckInfo, callback, Object, kCallbackOffset) 5709 ACCESSORS(AccessCheckInfo, callback, Object, kCallbackOffset)
5709 ACCESSORS(AccessCheckInfo, named_interceptor, Object, kNamedInterceptorOffset) 5710 ACCESSORS(AccessCheckInfo, named_interceptor, Object, kNamedInterceptorOffset)
5710 ACCESSORS(AccessCheckInfo, indexed_interceptor, Object, 5711 ACCESSORS(AccessCheckInfo, indexed_interceptor, Object,
5711 kIndexedInterceptorOffset) 5712 kIndexedInterceptorOffset)
5712 ACCESSORS(AccessCheckInfo, data, Object, kDataOffset) 5713 ACCESSORS(AccessCheckInfo, data, Object, kDataOffset)
5713 5714
5714 ACCESSORS(InterceptorInfo, getter, Object, kGetterOffset) 5715 ACCESSORS(InterceptorInfo, getter, Object, kGetterOffset)
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
6648 } 6649 }
6649 6650
6650 bool JSGeneratorObject::is_closed() const { 6651 bool JSGeneratorObject::is_closed() const {
6651 return continuation() == kGeneratorClosed; 6652 return continuation() == kGeneratorClosed;
6652 } 6653 }
6653 6654
6654 bool JSGeneratorObject::is_executing() const { 6655 bool JSGeneratorObject::is_executing() const {
6655 return continuation() == kGeneratorExecuting; 6656 return continuation() == kGeneratorExecuting;
6656 } 6657 }
6657 6658
6658 TYPE_CHECKER(JSModule, JS_MODULE_TYPE)
6659
6660 ACCESSORS(JSValue, value, Object, kValueOffset) 6659 ACCESSORS(JSValue, value, Object, kValueOffset)
6661 6660
6662 6661
6663 HeapNumber* HeapNumber::cast(Object* object) { 6662 HeapNumber* HeapNumber::cast(Object* object) {
6664 SLOW_DCHECK(object->IsHeapNumber() || object->IsMutableHeapNumber()); 6663 SLOW_DCHECK(object->IsHeapNumber() || object->IsMutableHeapNumber());
6665 return reinterpret_cast<HeapNumber*>(object); 6664 return reinterpret_cast<HeapNumber*>(object);
6666 } 6665 }
6667 6666
6668 6667
6669 const HeapNumber* HeapNumber::cast(const Object* object) { 6668 const HeapNumber* HeapNumber::cast(const Object* object) {
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
8282 #undef WRITE_INT64_FIELD 8281 #undef WRITE_INT64_FIELD
8283 #undef READ_BYTE_FIELD 8282 #undef READ_BYTE_FIELD
8284 #undef WRITE_BYTE_FIELD 8283 #undef WRITE_BYTE_FIELD
8285 #undef NOBARRIER_READ_BYTE_FIELD 8284 #undef NOBARRIER_READ_BYTE_FIELD
8286 #undef NOBARRIER_WRITE_BYTE_FIELD 8285 #undef NOBARRIER_WRITE_BYTE_FIELD
8287 8286
8288 } // namespace internal 8287 } // namespace internal
8289 } // namespace v8 8288 } // namespace v8
8290 8289
8291 #endif // V8_OBJECTS_INL_H_ 8290 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.cc ('K') | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698