| 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 5638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5649 | 5649 |
| 5650 ACCESSORS(Box, value, Object, kValueOffset) | 5650 ACCESSORS(Box, value, Object, kValueOffset) |
| 5651 | 5651 |
| 5652 ACCESSORS(PromiseContainer, thenable, JSReceiver, kThenableOffset) | 5652 ACCESSORS(PromiseContainer, thenable, JSReceiver, kThenableOffset) |
| 5653 ACCESSORS(PromiseContainer, then, JSReceiver, kThenOffset) | 5653 ACCESSORS(PromiseContainer, then, JSReceiver, kThenOffset) |
| 5654 ACCESSORS(PromiseContainer, resolve, JSFunction, kResolveOffset) | 5654 ACCESSORS(PromiseContainer, resolve, JSFunction, kResolveOffset) |
| 5655 ACCESSORS(PromiseContainer, reject, JSFunction, kRejectOffset) | 5655 ACCESSORS(PromiseContainer, reject, JSFunction, kRejectOffset) |
| 5656 ACCESSORS(PromiseContainer, before_debug_event, Object, kBeforeDebugEventOffset) | 5656 ACCESSORS(PromiseContainer, before_debug_event, Object, kBeforeDebugEventOffset) |
| 5657 ACCESSORS(PromiseContainer, after_debug_event, Object, kAfterDebugEventOffset) | 5657 ACCESSORS(PromiseContainer, after_debug_event, Object, kAfterDebugEventOffset) |
| 5658 | 5658 |
| 5659 ACCESSORS(PromiseReactionJobInfo, value, Object, kValueOffset); |
| 5660 ACCESSORS(PromiseReactionJobInfo, tasks, Object, kTasksOffset); |
| 5661 ACCESSORS(PromiseReactionJobInfo, deferred, Object, kDeferredOffset); |
| 5662 ACCESSORS(PromiseReactionJobInfo, before_debug_event, Object, |
| 5663 kBeforeDebugEventOffset); |
| 5664 ACCESSORS(PromiseReactionJobInfo, after_debug_event, Object, |
| 5665 kAfterDebugEventOffset); |
| 5666 ACCESSORS(PromiseReactionJobInfo, context, Context, kContextOffset); |
| 5667 |
| 5659 Map* PrototypeInfo::ObjectCreateMap() { | 5668 Map* PrototypeInfo::ObjectCreateMap() { |
| 5660 return Map::cast(WeakCell::cast(object_create_map())->value()); | 5669 return Map::cast(WeakCell::cast(object_create_map())->value()); |
| 5661 } | 5670 } |
| 5662 | 5671 |
| 5663 // static | 5672 // static |
| 5664 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, | 5673 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, |
| 5665 Handle<Map> map) { | 5674 Handle<Map> map) { |
| 5666 Handle<WeakCell> cell = Map::WeakCellForMap(map); | 5675 Handle<WeakCell> cell = Map::WeakCellForMap(map); |
| 5667 info->set_object_create_map(*cell); | 5676 info->set_object_create_map(*cell); |
| 5668 } | 5677 } |
| (...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8326 #undef WRITE_INT64_FIELD | 8335 #undef WRITE_INT64_FIELD |
| 8327 #undef READ_BYTE_FIELD | 8336 #undef READ_BYTE_FIELD |
| 8328 #undef WRITE_BYTE_FIELD | 8337 #undef WRITE_BYTE_FIELD |
| 8329 #undef NOBARRIER_READ_BYTE_FIELD | 8338 #undef NOBARRIER_READ_BYTE_FIELD |
| 8330 #undef NOBARRIER_WRITE_BYTE_FIELD | 8339 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8331 | 8340 |
| 8332 } // namespace internal | 8341 } // namespace internal |
| 8333 } // namespace v8 | 8342 } // namespace v8 |
| 8334 | 8343 |
| 8335 #endif // V8_OBJECTS_INL_H_ | 8344 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |