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

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

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: cast to jsobject 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
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 5627 matching lines...) Expand 10 before | Expand all | Expand 10 after
5638 ACCESSORS(AccessorInfo, expected_receiver_type, Object, 5638 ACCESSORS(AccessorInfo, expected_receiver_type, Object,
5639 kExpectedReceiverTypeOffset) 5639 kExpectedReceiverTypeOffset)
5640 5640
5641 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset) 5641 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset)
5642 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset) 5642 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset)
5643 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset) 5643 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset)
5644 ACCESSORS(AccessorInfo, data, Object, kDataOffset) 5644 ACCESSORS(AccessorInfo, data, Object, kDataOffset)
5645 5645
5646 ACCESSORS(Box, value, Object, kValueOffset) 5646 ACCESSORS(Box, value, Object, kValueOffset)
5647 5647
5648 ACCESSORS(PromiseContainer, promise, JSObject, kPromiseOffset)
5649 ACCESSORS(PromiseContainer, thenable, JSObject, kThenableOffset)
5650 ACCESSORS(PromiseContainer, then, JSFunction, kThenOffset)
5651 ACCESSORS(PromiseContainer, resolve, JSFunction, kResolveOffset)
5652 ACCESSORS(PromiseContainer, reject, JSFunction, kRejectOffset)
5653 ACCESSORS(PromiseContainer, before_debug_event, Object, kBeforeDebugEventOffset)
5654 ACCESSORS(PromiseContainer, after_debug_event, Object, kAfterDebugEventOffset)
5655
5648 Map* PrototypeInfo::ObjectCreateMap() { 5656 Map* PrototypeInfo::ObjectCreateMap() {
5649 return Map::cast(WeakCell::cast(object_create_map())->value()); 5657 return Map::cast(WeakCell::cast(object_create_map())->value());
5650 } 5658 }
5651 5659
5652 // static 5660 // static
5653 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, 5661 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info,
5654 Handle<Map> map) { 5662 Handle<Map> map) {
5655 Handle<WeakCell> cell = Map::WeakCellForMap(map); 5663 Handle<WeakCell> cell = Map::WeakCellForMap(map);
5656 info->set_object_create_map(*cell); 5664 info->set_object_create_map(*cell);
5657 } 5665 }
(...skipping 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after
8264 #undef WRITE_INT64_FIELD 8272 #undef WRITE_INT64_FIELD
8265 #undef READ_BYTE_FIELD 8273 #undef READ_BYTE_FIELD
8266 #undef WRITE_BYTE_FIELD 8274 #undef WRITE_BYTE_FIELD
8267 #undef NOBARRIER_READ_BYTE_FIELD 8275 #undef NOBARRIER_READ_BYTE_FIELD
8268 #undef NOBARRIER_WRITE_BYTE_FIELD 8276 #undef NOBARRIER_WRITE_BYTE_FIELD
8269 8277
8270 } // namespace internal 8278 } // namespace internal
8271 } // namespace v8 8279 } // namespace v8
8272 8280
8273 #endif // V8_OBJECTS_INL_H_ 8281 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects-debug.cc ('K') | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698