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

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

Issue 2604483002: [promises] Move PromiseHasUserDefinedRejectHandler to c++ (Closed)
Patch Set: use getdataproperty Created 3 years, 12 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 7078 matching lines...) Expand 10 before | Expand all | Expand 10 after
7089 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset) 7089 ACCESSORS(JSTypedArray, raw_length, Object, kLengthOffset)
7090 #endif 7090 #endif
7091 7091
7092 SMI_ACCESSORS(JSPromise, status, kStatusOffset) 7092 SMI_ACCESSORS(JSPromise, status, kStatusOffset)
7093 ACCESSORS(JSPromise, result, Object, kResultOffset) 7093 ACCESSORS(JSPromise, result, Object, kResultOffset)
7094 ACCESSORS(JSPromise, deferred, Object, kDeferredOffset) 7094 ACCESSORS(JSPromise, deferred, Object, kDeferredOffset)
7095 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset) 7095 ACCESSORS(JSPromise, fulfill_reactions, Object, kFulfillReactionsOffset)
7096 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset) 7096 ACCESSORS(JSPromise, reject_reactions, Object, kRejectReactionsOffset)
7097 SMI_ACCESSORS(JSPromise, flags, kFlagsOffset) 7097 SMI_ACCESSORS(JSPromise, flags, kFlagsOffset)
7098 BOOL_ACCESSORS(JSPromise, flags, has_handler, kHasHandlerBit) 7098 BOOL_ACCESSORS(JSPromise, flags, has_handler, kHasHandlerBit)
7099 BOOL_ACCESSORS(JSPromise, flags, handled_hint, kHandledHintBit)
7099 7100
7100 ACCESSORS(JSRegExp, data, Object, kDataOffset) 7101 ACCESSORS(JSRegExp, data, Object, kDataOffset)
7101 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset) 7102 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset)
7102 ACCESSORS(JSRegExp, source, Object, kSourceOffset) 7103 ACCESSORS(JSRegExp, source, Object, kSourceOffset)
7103 7104
7104 7105
7105 JSRegExp::Type JSRegExp::TypeTag() { 7106 JSRegExp::Type JSRegExp::TypeTag() {
7106 Object* data = this->data(); 7107 Object* data = this->data();
7107 if (data->IsUndefined(GetIsolate())) return JSRegExp::NOT_COMPILED; 7108 if (data->IsUndefined(GetIsolate())) return JSRegExp::NOT_COMPILED;
7108 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); 7109 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex));
(...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
8439 #undef WRITE_INT64_FIELD 8440 #undef WRITE_INT64_FIELD
8440 #undef READ_BYTE_FIELD 8441 #undef READ_BYTE_FIELD
8441 #undef WRITE_BYTE_FIELD 8442 #undef WRITE_BYTE_FIELD
8442 #undef NOBARRIER_READ_BYTE_FIELD 8443 #undef NOBARRIER_READ_BYTE_FIELD
8443 #undef NOBARRIER_WRITE_BYTE_FIELD 8444 #undef NOBARRIER_WRITE_BYTE_FIELD
8444 8445
8445 } // namespace internal 8446 } // namespace internal
8446 } // namespace v8 8447 } // namespace v8
8447 8448
8448 #endif // V8_OBJECTS_INL_H_ 8449 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | src/runtime/runtime-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698