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

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

Issue 2606093002: [promises] Refactor debug code (Closed)
Patch Set: fix stuff 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 5710 matching lines...) Expand 10 before | Expand all | Expand 10 after
5721 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset) 5721 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset)
5722 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset) 5722 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset)
5723 ACCESSORS(AccessorInfo, data, Object, kDataOffset) 5723 ACCESSORS(AccessorInfo, data, Object, kDataOffset)
5724 5724
5725 ACCESSORS(Box, value, Object, kValueOffset) 5725 ACCESSORS(Box, value, Object, kValueOffset)
5726 5726
5727 ACCESSORS(PromiseResolveThenableJobInfo, thenable, JSReceiver, kThenableOffset) 5727 ACCESSORS(PromiseResolveThenableJobInfo, thenable, JSReceiver, kThenableOffset)
5728 ACCESSORS(PromiseResolveThenableJobInfo, then, JSReceiver, kThenOffset) 5728 ACCESSORS(PromiseResolveThenableJobInfo, then, JSReceiver, kThenOffset)
5729 ACCESSORS(PromiseResolveThenableJobInfo, resolve, JSFunction, kResolveOffset) 5729 ACCESSORS(PromiseResolveThenableJobInfo, resolve, JSFunction, kResolveOffset)
5730 ACCESSORS(PromiseResolveThenableJobInfo, reject, JSFunction, kRejectOffset) 5730 ACCESSORS(PromiseResolveThenableJobInfo, reject, JSFunction, kRejectOffset)
5731 ACCESSORS(PromiseResolveThenableJobInfo, debug_id, Object, kDebugIdOffset) 5731 SMI_ACCESSORS(PromiseResolveThenableJobInfo, debug_id, kDebugIdOffset)
5732 ACCESSORS(PromiseResolveThenableJobInfo, debug_name, Object, kDebugNameOffset) 5732 SMI_ACCESSORS(PromiseResolveThenableJobInfo, debug_name, kDebugNameOffset)
5733 ACCESSORS(PromiseResolveThenableJobInfo, context, Context, kContextOffset); 5733 ACCESSORS(PromiseResolveThenableJobInfo, context, Context, kContextOffset);
5734 5734
5735 ACCESSORS(PromiseReactionJobInfo, promise, JSPromise, kPromiseOffset); 5735 ACCESSORS(PromiseReactionJobInfo, promise, JSPromise, kPromiseOffset);
5736 ACCESSORS(PromiseReactionJobInfo, value, Object, kValueOffset); 5736 ACCESSORS(PromiseReactionJobInfo, value, Object, kValueOffset);
5737 ACCESSORS(PromiseReactionJobInfo, tasks, Object, kTasksOffset); 5737 ACCESSORS(PromiseReactionJobInfo, tasks, Object, kTasksOffset);
5738 ACCESSORS(PromiseReactionJobInfo, deferred_promise, Object, 5738 ACCESSORS(PromiseReactionJobInfo, deferred_promise, Object,
5739 kDeferredPromiseOffset); 5739 kDeferredPromiseOffset);
5740 ACCESSORS(PromiseReactionJobInfo, deferred_on_resolve, Object, 5740 ACCESSORS(PromiseReactionJobInfo, deferred_on_resolve, Object,
5741 kDeferredOnResolveOffset); 5741 kDeferredOnResolveOffset);
5742 ACCESSORS(PromiseReactionJobInfo, deferred_on_reject, Object, 5742 ACCESSORS(PromiseReactionJobInfo, deferred_on_reject, Object,
5743 kDeferredOnRejectOffset); 5743 kDeferredOnRejectOffset);
5744 ACCESSORS(PromiseReactionJobInfo, debug_id, Object, kDebugIdOffset); 5744 SMI_ACCESSORS(PromiseReactionJobInfo, debug_id, kDebugIdOffset);
5745 ACCESSORS(PromiseReactionJobInfo, debug_name, Object, kDebugNameOffset); 5745 SMI_ACCESSORS(PromiseReactionJobInfo, debug_name, kDebugNameOffset);
5746 ACCESSORS(PromiseReactionJobInfo, context, Context, kContextOffset); 5746 ACCESSORS(PromiseReactionJobInfo, context, Context, kContextOffset);
5747 5747
5748 Map* PrototypeInfo::ObjectCreateMap() { 5748 Map* PrototypeInfo::ObjectCreateMap() {
5749 return Map::cast(WeakCell::cast(object_create_map())->value()); 5749 return Map::cast(WeakCell::cast(object_create_map())->value());
5750 } 5750 }
5751 5751
5752 // static 5752 // static
5753 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, 5753 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info,
5754 Handle<Map> map) { 5754 Handle<Map> map) {
5755 Handle<WeakCell> cell = Map::WeakCellForMap(map); 5755 Handle<WeakCell> cell = Map::WeakCellForMap(map);
(...skipping 2699 matching lines...) Expand 10 before | Expand all | Expand 10 after
8455 #undef WRITE_INT64_FIELD 8455 #undef WRITE_INT64_FIELD
8456 #undef READ_BYTE_FIELD 8456 #undef READ_BYTE_FIELD
8457 #undef WRITE_BYTE_FIELD 8457 #undef WRITE_BYTE_FIELD
8458 #undef NOBARRIER_READ_BYTE_FIELD 8458 #undef NOBARRIER_READ_BYTE_FIELD
8459 #undef NOBARRIER_WRITE_BYTE_FIELD 8459 #undef NOBARRIER_WRITE_BYTE_FIELD
8460 8460
8461 } // namespace internal 8461 } // namespace internal
8462 } // namespace v8 8462 } // namespace v8
8463 8463
8464 #endif // V8_OBJECTS_INL_H_ 8464 #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