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 5689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5700 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset) | 5700 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset) |
5701 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset) | 5701 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset) |
5702 ACCESSORS(AccessorInfo, data, Object, kDataOffset) | 5702 ACCESSORS(AccessorInfo, data, Object, kDataOffset) |
5703 | 5703 |
5704 ACCESSORS(Box, value, Object, kValueOffset) | 5704 ACCESSORS(Box, value, Object, kValueOffset) |
5705 | 5705 |
5706 ACCESSORS(PromiseResolveThenableJobInfo, thenable, JSReceiver, kThenableOffset) | 5706 ACCESSORS(PromiseResolveThenableJobInfo, thenable, JSReceiver, kThenableOffset) |
5707 ACCESSORS(PromiseResolveThenableJobInfo, then, JSReceiver, kThenOffset) | 5707 ACCESSORS(PromiseResolveThenableJobInfo, then, JSReceiver, kThenOffset) |
5708 ACCESSORS(PromiseResolveThenableJobInfo, resolve, JSFunction, kResolveOffset) | 5708 ACCESSORS(PromiseResolveThenableJobInfo, resolve, JSFunction, kResolveOffset) |
5709 ACCESSORS(PromiseResolveThenableJobInfo, reject, JSFunction, kRejectOffset) | 5709 ACCESSORS(PromiseResolveThenableJobInfo, reject, JSFunction, kRejectOffset) |
5710 ACCESSORS(PromiseResolveThenableJobInfo, before_debug_event, Object, | 5710 ACCESSORS(PromiseResolveThenableJobInfo, debug_id, Object, kDebugIdOffset) |
5711 kBeforeDebugEventOffset) | 5711 ACCESSORS(PromiseResolveThenableJobInfo, debug_name, Object, kDebugNameOffset) |
5712 ACCESSORS(PromiseResolveThenableJobInfo, after_debug_event, Object, | |
5713 kAfterDebugEventOffset) | |
5714 | 5712 |
5715 ACCESSORS(PromiseReactionJobInfo, value, Object, kValueOffset); | 5713 ACCESSORS(PromiseReactionJobInfo, value, Object, kValueOffset); |
5716 ACCESSORS(PromiseReactionJobInfo, tasks, Object, kTasksOffset); | 5714 ACCESSORS(PromiseReactionJobInfo, tasks, Object, kTasksOffset); |
5717 ACCESSORS(PromiseReactionJobInfo, deferred, Object, kDeferredOffset); | 5715 ACCESSORS(PromiseReactionJobInfo, deferred, Object, kDeferredOffset); |
5718 ACCESSORS(PromiseReactionJobInfo, before_debug_event, Object, | 5716 ACCESSORS(PromiseReactionJobInfo, debug_id, Object, kDebugIdOffset); |
5719 kBeforeDebugEventOffset); | 5717 ACCESSORS(PromiseReactionJobInfo, debug_name, Object, kDebugNameOffset); |
5720 ACCESSORS(PromiseReactionJobInfo, after_debug_event, Object, | |
5721 kAfterDebugEventOffset); | |
5722 ACCESSORS(PromiseReactionJobInfo, context, Context, kContextOffset); | 5718 ACCESSORS(PromiseReactionJobInfo, context, Context, kContextOffset); |
5723 | 5719 |
5724 Map* PrototypeInfo::ObjectCreateMap() { | 5720 Map* PrototypeInfo::ObjectCreateMap() { |
5725 return Map::cast(WeakCell::cast(object_create_map())->value()); | 5721 return Map::cast(WeakCell::cast(object_create_map())->value()); |
5726 } | 5722 } |
5727 | 5723 |
5728 // static | 5724 // static |
5729 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, | 5725 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, |
5730 Handle<Map> map) { | 5726 Handle<Map> map) { |
5731 Handle<WeakCell> cell = Map::WeakCellForMap(map); | 5727 Handle<WeakCell> cell = Map::WeakCellForMap(map); |
(...skipping 2666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8398 #undef WRITE_INT64_FIELD | 8394 #undef WRITE_INT64_FIELD |
8399 #undef READ_BYTE_FIELD | 8395 #undef READ_BYTE_FIELD |
8400 #undef WRITE_BYTE_FIELD | 8396 #undef WRITE_BYTE_FIELD |
8401 #undef NOBARRIER_READ_BYTE_FIELD | 8397 #undef NOBARRIER_READ_BYTE_FIELD |
8402 #undef NOBARRIER_WRITE_BYTE_FIELD | 8398 #undef NOBARRIER_WRITE_BYTE_FIELD |
8403 | 8399 |
8404 } // namespace internal | 8400 } // namespace internal |
8405 } // namespace v8 | 8401 } // namespace v8 |
8406 | 8402 |
8407 #endif // V8_OBJECTS_INL_H_ | 8403 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |