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

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

Issue 2362503003: [promises] PromiseResolveThenableJob: change then to be a JSReceiver (Closed)
Patch Set: 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
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime-internal.cc » ('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 5637 matching lines...) Expand 10 before | Expand all | Expand 10 after
5648 kExpectedReceiverTypeOffset) 5648 kExpectedReceiverTypeOffset)
5649 5649
5650 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset) 5650 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset)
5651 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset) 5651 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset)
5652 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset) 5652 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset)
5653 ACCESSORS(AccessorInfo, data, Object, kDataOffset) 5653 ACCESSORS(AccessorInfo, data, Object, kDataOffset)
5654 5654
5655 ACCESSORS(Box, value, Object, kValueOffset) 5655 ACCESSORS(Box, value, Object, kValueOffset)
5656 5656
5657 ACCESSORS(PromiseContainer, thenable, JSReceiver, kThenableOffset) 5657 ACCESSORS(PromiseContainer, thenable, JSReceiver, kThenableOffset)
5658 ACCESSORS(PromiseContainer, then, JSFunction, kThenOffset) 5658 ACCESSORS(PromiseContainer, then, JSReceiver, kThenOffset)
5659 ACCESSORS(PromiseContainer, resolve, JSFunction, kResolveOffset) 5659 ACCESSORS(PromiseContainer, resolve, JSFunction, kResolveOffset)
5660 ACCESSORS(PromiseContainer, reject, JSFunction, kRejectOffset) 5660 ACCESSORS(PromiseContainer, reject, JSFunction, kRejectOffset)
5661 ACCESSORS(PromiseContainer, before_debug_event, Object, kBeforeDebugEventOffset) 5661 ACCESSORS(PromiseContainer, before_debug_event, Object, kBeforeDebugEventOffset)
5662 ACCESSORS(PromiseContainer, after_debug_event, Object, kAfterDebugEventOffset) 5662 ACCESSORS(PromiseContainer, after_debug_event, Object, kAfterDebugEventOffset)
5663 5663
5664 Map* PrototypeInfo::ObjectCreateMap() { 5664 Map* PrototypeInfo::ObjectCreateMap() {
5665 return Map::cast(WeakCell::cast(object_create_map())->value()); 5665 return Map::cast(WeakCell::cast(object_create_map())->value());
5666 } 5666 }
5667 5667
5668 // static 5668 // static
(...skipping 2654 matching lines...) Expand 10 before | Expand all | Expand 10 after
8323 #undef WRITE_INT64_FIELD 8323 #undef WRITE_INT64_FIELD
8324 #undef READ_BYTE_FIELD 8324 #undef READ_BYTE_FIELD
8325 #undef WRITE_BYTE_FIELD 8325 #undef WRITE_BYTE_FIELD
8326 #undef NOBARRIER_READ_BYTE_FIELD 8326 #undef NOBARRIER_READ_BYTE_FIELD
8327 #undef NOBARRIER_WRITE_BYTE_FIELD 8327 #undef NOBARRIER_WRITE_BYTE_FIELD
8328 8328
8329 } // namespace internal 8329 } // namespace internal
8330 } // namespace v8 8330 } // namespace v8
8331 8331
8332 #endif // V8_OBJECTS_INL_H_ 8332 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698