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

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

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)
Patch Set: dont create handles if not in debug 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 5632 matching lines...) Expand 10 before | Expand all | Expand 10 after
5643 ACCESSORS(AccessorInfo, expected_receiver_type, Object, 5643 ACCESSORS(AccessorInfo, expected_receiver_type, Object,
5644 kExpectedReceiverTypeOffset) 5644 kExpectedReceiverTypeOffset)
5645 5645
5646 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset) 5646 ACCESSORS(AccessorInfo, getter, Object, kGetterOffset)
5647 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset) 5647 ACCESSORS(AccessorInfo, setter, Object, kSetterOffset)
5648 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset) 5648 ACCESSORS(AccessorInfo, js_getter, Object, kJsGetterOffset)
5649 ACCESSORS(AccessorInfo, data, Object, kDataOffset) 5649 ACCESSORS(AccessorInfo, data, Object, kDataOffset)
5650 5650
5651 ACCESSORS(Box, value, Object, kValueOffset) 5651 ACCESSORS(Box, value, Object, kValueOffset)
5652 5652
5653 ACCESSORS(PromiseContainer, thenable, JSReceiver, kThenableOffset)
5654 ACCESSORS(PromiseContainer, then, JSFunction, kThenOffset)
5655 ACCESSORS(PromiseContainer, resolve, JSFunction, kResolveOffset)
5656 ACCESSORS(PromiseContainer, reject, JSFunction, kRejectOffset)
5657 ACCESSORS(PromiseContainer, before_debug_event, Object, kBeforeDebugEventOffset)
5658 ACCESSORS(PromiseContainer, after_debug_event, Object, kAfterDebugEventOffset)
5659
5653 Map* PrototypeInfo::ObjectCreateMap() { 5660 Map* PrototypeInfo::ObjectCreateMap() {
5654 return Map::cast(WeakCell::cast(object_create_map())->value()); 5661 return Map::cast(WeakCell::cast(object_create_map())->value());
5655 } 5662 }
5656 5663
5657 // static 5664 // static
5658 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info, 5665 void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info,
5659 Handle<Map> map) { 5666 Handle<Map> map) {
5660 Handle<WeakCell> cell = Map::WeakCellForMap(map); 5667 Handle<WeakCell> cell = Map::WeakCellForMap(map);
5661 info->set_object_create_map(*cell); 5668 info->set_object_create_map(*cell);
5662 } 5669 }
(...skipping 2623 matching lines...) Expand 10 before | Expand all | Expand 10 after
8286 #undef WRITE_INT64_FIELD 8293 #undef WRITE_INT64_FIELD
8287 #undef READ_BYTE_FIELD 8294 #undef READ_BYTE_FIELD
8288 #undef WRITE_BYTE_FIELD 8295 #undef WRITE_BYTE_FIELD
8289 #undef NOBARRIER_READ_BYTE_FIELD 8296 #undef NOBARRIER_READ_BYTE_FIELD
8290 #undef NOBARRIER_WRITE_BYTE_FIELD 8297 #undef NOBARRIER_WRITE_BYTE_FIELD
8291 8298
8292 } // namespace internal 8299 } // namespace internal
8293 } // namespace v8 8300 } // namespace v8
8294 8301
8295 #endif // V8_OBJECTS_INL_H_ 8302 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/isolate.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