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

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

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (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
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 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after
5637 ACCESSORS(AccessorInfo, expected_receiver_type, Object, 5637 ACCESSORS(AccessorInfo, expected_receiver_type, Object,
5638 kExpectedReceiverTypeOffset) 5638 kExpectedReceiverTypeOffset)
5639 5639
5640 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset) 5640 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset)
5641 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset) 5641 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset)
5642 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset) 5642 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset)
5643 ACCESSORS(AccessorInfo, data, Object, kDataOffset) 5643 ACCESSORS(AccessorInfo, data, Object, kDataOffset)
5644 5644
5645 ACCESSORS(Box, value, Object, kValueOffset) 5645 ACCESSORS(Box, value, Object, kValueOffset)
5646 5646
5647 ACCESSORS(PromiseContainer, promise, Object, kPromiseOffset)
5648 ACCESSORS(PromiseContainer, thenable, Object, kThenableOffset)
5649 ACCESSORS(PromiseContainer, then, JSFunction, kThenOffset)
5650 ACCESSORS(PromiseContainer, resolve, JSFunction, kResolveOffset)
5651 ACCESSORS(PromiseContainer, reject, JSFunction, kRejectOffset)
5652
5647 Map* PrototypeInfo::ObjectCreateMap() { 5653 Map* PrototypeInfo::ObjectCreateMap() {
5648 return Map::cast(WeakCell::cast(object_create_map())->value()); 5654 return Map::cast(WeakCell::cast(object_create_map())->value());
5649 } 5655 }
5650 5656
5651 // static 5657 // static
5652 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, 5658 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info,
5653 Handle<Map> map) { 5659 Handle<Map> map) {
5654 Handle<WeakCell> cell = Map::WeakCellForMap(map); 5660 Handle<WeakCell> cell = Map::WeakCellForMap(map);
5655 info->set_object_create_map(*cell); 5661 info->set_object_create_map(*cell);
5656 } 5662 }
(...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after
8256 #undef WRITE_INT64_FIELD 8262 #undef WRITE_INT64_FIELD
8257 #undef READ_BYTE_FIELD 8263 #undef READ_BYTE_FIELD
8258 #undef WRITE_BYTE_FIELD 8264 #undef WRITE_BYTE_FIELD
8259 #undef NOBARRIER_READ_BYTE_FIELD 8265 #undef NOBARRIER_READ_BYTE_FIELD
8260 #undef NOBARRIER_WRITE_BYTE_FIELD 8266 #undef NOBARRIER_WRITE_BYTE_FIELD
8261 8267
8262 } // namespace internal 8268 } // namespace internal
8263 } // namespace v8 8269 } // namespace v8
8264 8270
8265 #endif // V8_OBJECTS_INL_H_ 8271 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698