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

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

Issue 2590563003: [promises] Remove deferred object (Closed)
Patch Set: rebase Created 3 years, 11 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/objects-printer.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 5713 matching lines...) Expand 10 before | Expand all | Expand 10 after
5724 ACCESSORS(PromiseResolveThenableJobInfo, then, JSReceiver, kThenOffset) 5724 ACCESSORS(PromiseResolveThenableJobInfo, then, JSReceiver, kThenOffset)
5725 ACCESSORS(PromiseResolveThenableJobInfo, resolve, JSFunction, kResolveOffset) 5725 ACCESSORS(PromiseResolveThenableJobInfo, resolve, JSFunction, kResolveOffset)
5726 ACCESSORS(PromiseResolveThenableJobInfo, reject, JSFunction, kRejectOffset) 5726 ACCESSORS(PromiseResolveThenableJobInfo, reject, JSFunction, kRejectOffset)
5727 ACCESSORS(PromiseResolveThenableJobInfo, debug_id, Object, kDebugIdOffset) 5727 ACCESSORS(PromiseResolveThenableJobInfo, debug_id, Object, kDebugIdOffset)
5728 ACCESSORS(PromiseResolveThenableJobInfo, debug_name, Object, kDebugNameOffset) 5728 ACCESSORS(PromiseResolveThenableJobInfo, debug_name, Object, kDebugNameOffset)
5729 ACCESSORS(PromiseResolveThenableJobInfo, context, Context, kContextOffset); 5729 ACCESSORS(PromiseResolveThenableJobInfo, context, Context, kContextOffset);
5730 5730
5731 ACCESSORS(PromiseReactionJobInfo, promise, JSPromise, kPromiseOffset); 5731 ACCESSORS(PromiseReactionJobInfo, promise, JSPromise, kPromiseOffset);
5732 ACCESSORS(PromiseReactionJobInfo, value, Object, kValueOffset); 5732 ACCESSORS(PromiseReactionJobInfo, value, Object, kValueOffset);
5733 ACCESSORS(PromiseReactionJobInfo, tasks, Object, kTasksOffset); 5733 ACCESSORS(PromiseReactionJobInfo, tasks, Object, kTasksOffset);
5734 ACCESSORS(PromiseReactionJobInfo, deferred, Object, kDeferredOffset); 5734 ACCESSORS(PromiseReactionJobInfo, deferred_promise, Object,
5735 kDeferredPromiseOffset);
5736 ACCESSORS(PromiseReactionJobInfo, deferred_on_resolve, Object,
5737 kDeferredOnResolveOffset);
5738 ACCESSORS(PromiseReactionJobInfo, deferred_on_reject, Object,
5739 kDeferredOnRejectOffset);
5735 ACCESSORS(PromiseReactionJobInfo, debug_id, Object, kDebugIdOffset); 5740 ACCESSORS(PromiseReactionJobInfo, debug_id, Object, kDebugIdOffset);
5736 ACCESSORS(PromiseReactionJobInfo, debug_name, Object, kDebugNameOffset); 5741 ACCESSORS(PromiseReactionJobInfo, debug_name, Object, kDebugNameOffset);
5737 ACCESSORS(PromiseReactionJobInfo, context, Context, kContextOffset); 5742 ACCESSORS(PromiseReactionJobInfo, context, Context, kContextOffset);
5738 5743
5739 Map* PrototypeInfo::ObjectCreateMap() { 5744 Map* PrototypeInfo::ObjectCreateMap() {
5740 return Map::cast(WeakCell::cast(object_create_map())->value()); 5745 return Map::cast(WeakCell::cast(object_create_map())->value());
5741 } 5746 }
5742 5747
5743 // static 5748 // static
5744 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, 5749 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info,
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
7084 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kLengthOffset, value, mode); 7089 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kLengthOffset, value, mode);
7085 } 7090 }
7086 7091
7087 7092
7088 #ifdef VERIFY_HEAP 7093 #ifdef VERIFY_HEAP
7089 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset) 7094 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset)
7090 #endif 7095 #endif
7091 7096
7092 SMI_ACCESSORS(JSPromise, status, kStatusOffset) 7097 SMI_ACCESSORS(JSPromise, status, kStatusOffset)
7093 ACCESSORS(JSPromise, result, Object, kResultOffset) 7098 ACCESSORS(JSPromise, result, Object, kResultOffset)
7094 ACCESSORS(JSPromise, deferred, Object, kDeferredOffset) 7099 ACCESSORS(JSPromise, deferred_promise, Object, kDeferredPromiseOffset)
7100 ACCESSORS(JSPromise, deferred_on_resolve, Object, kDeferredOnResolveOffset)
7101 ACCESSORS(JSPromise, deferred_on_reject, Object, kDeferredOnRejectOffset)
7095 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset) 7102 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset)
7096 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset) 7103 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset)
7097 SMI_ACCESSORS(JSPromise, flags, kFlagsOffset) 7104 SMI_ACCESSORS(JSPromise, flags, kFlagsOffset)
7098 BOOL_ACCESSORS(JSPromise, flags, has_handler, kHasHandlerBit) 7105 BOOL_ACCESSORS(JSPromise, flags, has_handler, kHasHandlerBit)
7099 BOOL_ACCESSORS(JSPromise, flags, handled_hint, kHandledHintBit) 7106 BOOL_ACCESSORS(JSPromise, flags, handled_hint, kHandledHintBit)
7100 7107
7101 ACCESSORS(JSRegExp, data, Object, kDataOffset) 7108 ACCESSORS(JSRegExp, data, Object, kDataOffset)
7102 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset) 7109 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset)
7103 ACCESSORS(JSRegExp, source, Object, kSourceOffset) 7110 ACCESSORS(JSRegExp, source, Object, kSourceOffset)
7104 7111
(...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after
8440 #undef WRITE_INT64_FIELD 8447 #undef WRITE_INT64_FIELD
8441 #undef READ_BYTE_FIELD 8448 #undef READ_BYTE_FIELD
8442 #undef WRITE_BYTE_FIELD 8449 #undef WRITE_BYTE_FIELD
8443 #undef NOBARRIER_READ_BYTE_FIELD 8450 #undef NOBARRIER_READ_BYTE_FIELD
8444 #undef NOBARRIER_WRITE_BYTE_FIELD 8451 #undef NOBARRIER_WRITE_BYTE_FIELD
8445 8452
8446 } // namespace internal 8453 } // namespace internal
8447 } // namespace v8 8454 } // namespace v8
8448 8455
8449 #endif // V8_OBJECTS_INL_H_ 8456 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698