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

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

Issue 2567333002: [promises] port NewPromiseCapability to TF (Closed)
Patch Set: Make gcmole happy 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 TYPE_CHECKER(JSDataView, JS_DATA_VIEW_TYPE) 146 TYPE_CHECKER(JSDataView, JS_DATA_VIEW_TYPE)
147 TYPE_CHECKER(JSDate, JS_DATE_TYPE) 147 TYPE_CHECKER(JSDate, JS_DATE_TYPE)
148 TYPE_CHECKER(JSError, JS_ERROR_TYPE) 148 TYPE_CHECKER(JSError, JS_ERROR_TYPE)
149 TYPE_CHECKER(JSFunction, JS_FUNCTION_TYPE) 149 TYPE_CHECKER(JSFunction, JS_FUNCTION_TYPE)
150 TYPE_CHECKER(JSGeneratorObject, JS_GENERATOR_OBJECT_TYPE) 150 TYPE_CHECKER(JSGeneratorObject, JS_GENERATOR_OBJECT_TYPE)
151 TYPE_CHECKER(JSGlobalObject, JS_GLOBAL_OBJECT_TYPE) 151 TYPE_CHECKER(JSGlobalObject, JS_GLOBAL_OBJECT_TYPE)
152 TYPE_CHECKER(JSMap, JS_MAP_TYPE) 152 TYPE_CHECKER(JSMap, JS_MAP_TYPE)
153 TYPE_CHECKER(JSMapIterator, JS_MAP_ITERATOR_TYPE) 153 TYPE_CHECKER(JSMapIterator, JS_MAP_ITERATOR_TYPE)
154 TYPE_CHECKER(JSMessageObject, JS_MESSAGE_OBJECT_TYPE) 154 TYPE_CHECKER(JSMessageObject, JS_MESSAGE_OBJECT_TYPE)
155 TYPE_CHECKER(JSModuleNamespace, JS_MODULE_NAMESPACE_TYPE) 155 TYPE_CHECKER(JSModuleNamespace, JS_MODULE_NAMESPACE_TYPE)
156 TYPE_CHECKER(JSPromiseCapability, JS_PROMISE_CAPABILITY_TYPE)
156 TYPE_CHECKER(JSPromise, JS_PROMISE_TYPE) 157 TYPE_CHECKER(JSPromise, JS_PROMISE_TYPE)
157 TYPE_CHECKER(JSRegExp, JS_REGEXP_TYPE) 158 TYPE_CHECKER(JSRegExp, JS_REGEXP_TYPE)
158 TYPE_CHECKER(JSSet, JS_SET_TYPE) 159 TYPE_CHECKER(JSSet, JS_SET_TYPE)
159 TYPE_CHECKER(JSSetIterator, JS_SET_ITERATOR_TYPE) 160 TYPE_CHECKER(JSSetIterator, JS_SET_ITERATOR_TYPE)
160 TYPE_CHECKER(JSStringIterator, JS_STRING_ITERATOR_TYPE) 161 TYPE_CHECKER(JSStringIterator, JS_STRING_ITERATOR_TYPE)
161 TYPE_CHECKER(JSTypedArray, JS_TYPED_ARRAY_TYPE) 162 TYPE_CHECKER(JSTypedArray, JS_TYPED_ARRAY_TYPE)
162 TYPE_CHECKER(JSValue, JS_VALUE_TYPE) 163 TYPE_CHECKER(JSValue, JS_VALUE_TYPE)
163 TYPE_CHECKER(JSWeakMap, JS_WEAK_MAP_TYPE) 164 TYPE_CHECKER(JSWeakMap, JS_WEAK_MAP_TYPE)
164 TYPE_CHECKER(JSWeakSet, JS_WEAK_SET_TYPE) 165 TYPE_CHECKER(JSWeakSet, JS_WEAK_SET_TYPE)
165 TYPE_CHECKER(Map, MAP_TYPE) 166 TYPE_CHECKER(Map, MAP_TYPE)
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 CAST_ACCESSOR(JSGlobalObject) 634 CAST_ACCESSOR(JSGlobalObject)
634 CAST_ACCESSOR(JSGlobalProxy) 635 CAST_ACCESSOR(JSGlobalProxy)
635 CAST_ACCESSOR(JSMap) 636 CAST_ACCESSOR(JSMap)
636 CAST_ACCESSOR(JSMapIterator) 637 CAST_ACCESSOR(JSMapIterator)
637 CAST_ACCESSOR(JSMessageObject) 638 CAST_ACCESSOR(JSMessageObject)
638 CAST_ACCESSOR(JSModuleNamespace) 639 CAST_ACCESSOR(JSModuleNamespace)
639 CAST_ACCESSOR(JSObject) 640 CAST_ACCESSOR(JSObject)
640 CAST_ACCESSOR(JSProxy) 641 CAST_ACCESSOR(JSProxy)
641 CAST_ACCESSOR(JSReceiver) 642 CAST_ACCESSOR(JSReceiver)
642 CAST_ACCESSOR(JSRegExp) 643 CAST_ACCESSOR(JSRegExp)
644 CAST_ACCESSOR(JSPromiseCapability)
643 CAST_ACCESSOR(JSPromise) 645 CAST_ACCESSOR(JSPromise)
644 CAST_ACCESSOR(JSSet) 646 CAST_ACCESSOR(JSSet)
645 CAST_ACCESSOR(JSSetIterator) 647 CAST_ACCESSOR(JSSetIterator)
646 CAST_ACCESSOR(JSStringIterator) 648 CAST_ACCESSOR(JSStringIterator)
647 CAST_ACCESSOR(JSArrayIterator) 649 CAST_ACCESSOR(JSArrayIterator)
648 CAST_ACCESSOR(JSTypedArray) 650 CAST_ACCESSOR(JSTypedArray)
649 CAST_ACCESSOR(JSValue) 651 CAST_ACCESSOR(JSValue)
650 CAST_ACCESSOR(JSWeakCollection) 652 CAST_ACCESSOR(JSWeakCollection)
651 CAST_ACCESSOR(JSWeakMap) 653 CAST_ACCESSOR(JSWeakMap)
652 CAST_ACCESSOR(JSWeakSet) 654 CAST_ACCESSOR(JSWeakSet)
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
2166 case JS_MAP_TYPE: 2168 case JS_MAP_TYPE:
2167 return JSMap::kSize; 2169 return JSMap::kSize;
2168 case JS_SET_ITERATOR_TYPE: 2170 case JS_SET_ITERATOR_TYPE:
2169 return JSSetIterator::kSize; 2171 return JSSetIterator::kSize;
2170 case JS_MAP_ITERATOR_TYPE: 2172 case JS_MAP_ITERATOR_TYPE:
2171 return JSMapIterator::kSize; 2173 return JSMapIterator::kSize;
2172 case JS_WEAK_MAP_TYPE: 2174 case JS_WEAK_MAP_TYPE:
2173 return JSWeakMap::kSize; 2175 return JSWeakMap::kSize;
2174 case JS_WEAK_SET_TYPE: 2176 case JS_WEAK_SET_TYPE:
2175 return JSWeakSet::kSize; 2177 return JSWeakSet::kSize;
2178 case JS_PROMISE_CAPABILITY_TYPE:
2179 return JSPromiseCapability::kSize;
2176 case JS_PROMISE_TYPE: 2180 case JS_PROMISE_TYPE:
2177 return JSPromise::kSize; 2181 return JSPromise::kSize;
2178 case JS_REGEXP_TYPE: 2182 case JS_REGEXP_TYPE:
2179 return JSRegExp::kSize; 2183 return JSRegExp::kSize;
2180 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 2184 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
2181 return JSObject::kHeaderSize; 2185 return JSObject::kHeaderSize;
2182 case JS_MESSAGE_OBJECT_TYPE: 2186 case JS_MESSAGE_OBJECT_TYPE:
2183 return JSMessageObject::kSize; 2187 return JSMessageObject::kSize;
2184 case JS_ARGUMENTS_TYPE: 2188 case JS_ARGUMENTS_TYPE:
2185 return JSArgumentsObject::kHeaderSize; 2189 return JSArgumentsObject::kHeaderSize;
(...skipping 4901 matching lines...) Expand 10 before | Expand all | Expand 10 after
7087 void JSTypedArray::set_length(Object* value, WriteBarrierMode mode) { 7091 void JSTypedArray::set_length(Object* value, WriteBarrierMode mode) {
7088 WRITE_FIELD(this, kLengthOffset, value); 7092 WRITE_FIELD(this, kLengthOffset, value);
7089 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kLengthOffset, value, mode); 7093 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kLengthOffset, value, mode);
7090 } 7094 }
7091 7095
7092 7096
7093 #ifdef VERIFY_HEAP 7097 #ifdef VERIFY_HEAP
7094 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset) 7098 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset)
7095 #endif 7099 #endif
7096 7100
7101 ACCESSORS(JSPromiseCapability, promise, Object, kPromiseOffset)
7102 ACCESSORS(JSPromiseCapability, resolve, Object, kResolveOffset)
7103 ACCESSORS(JSPromiseCapability, reject, Object, kRejectOffset)
7104
7097 SMI_ACCESSORS(JSPromise, status, kStatusOffset) 7105 SMI_ACCESSORS(JSPromise, status, kStatusOffset)
7098 ACCESSORS(JSPromise, result, Object, kResultOffset) 7106 ACCESSORS(JSPromise, result, Object, kResultOffset)
7099 ACCESSORS(JSPromise, deferred_promise, Object, kDeferredPromiseOffset) 7107 ACCESSORS(JSPromise, deferred_promise, Object, kDeferredPromiseOffset)
7100 ACCESSORS(JSPromise, deferred_on_resolve, Object, kDeferredOnResolveOffset) 7108 ACCESSORS(JSPromise, deferred_on_resolve, Object, kDeferredOnResolveOffset)
7101 ACCESSORS(JSPromise, deferred_on_reject, Object, kDeferredOnRejectOffset) 7109 ACCESSORS(JSPromise, deferred_on_reject, Object, kDeferredOnRejectOffset)
7102 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset) 7110 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset)
7103 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset) 7111 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset)
7104 SMI_ACCESSORS(JSPromise, flags, kFlagsOffset) 7112 SMI_ACCESSORS(JSPromise, flags, kFlagsOffset)
7105 BOOL_ACCESSORS(JSPromise, flags, has_handler, kHasHandlerBit) 7113 BOOL_ACCESSORS(JSPromise, flags, has_handler, kHasHandlerBit)
7106 BOOL_ACCESSORS(JSPromise, flags, handled_hint, kHandledHintBit) 7114 BOOL_ACCESSORS(JSPromise, flags, handled_hint, kHandledHintBit)
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
8447 #undef WRITE_INT64_FIELD 8455 #undef WRITE_INT64_FIELD
8448 #undef READ_BYTE_FIELD 8456 #undef READ_BYTE_FIELD
8449 #undef WRITE_BYTE_FIELD 8457 #undef WRITE_BYTE_FIELD
8450 #undef NOBARRIER_READ_BYTE_FIELD 8458 #undef NOBARRIER_READ_BYTE_FIELD
8451 #undef NOBARRIER_WRITE_BYTE_FIELD 8459 #undef NOBARRIER_WRITE_BYTE_FIELD
8452 8460
8453 } // namespace internal 8461 } // namespace internal
8454 } // namespace v8 8462 } // namespace v8
8455 8463
8456 #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