File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77// https://tc39.es/ecma262/#sec-promise-jobs
88namespace promise {
99extern macro IsJSPromiseMap(Map): bool;
10+ extern macro NeedsAnyPromiseHooks(): bool;
1011
1112// https://tc39.es/ecma262/#sec-promiseresolvethenablejob
1213transitioning builtin
@@ -25,7 +26,7 @@ PromiseResolveThenableJob(implicit context: Context)(
2526 const promiseThen = *NativeContextSlot(ContextSlot::PROMISE_THEN_INDEX);
2627 const thenableMap = thenable.map;
2728 if (TaggedEqual(then, promiseThen) && IsJSPromiseMap(thenableMap) &&
28- !IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate () &&
29+ !NeedsAnyPromiseHooks () &&
2930 IsPromiseSpeciesLookupChainIntact(nativeContext, thenableMap)) {
3031 // We know that the {thenable} is a JSPromise, which doesn't require
3132 // any special treatment and that {then} corresponds to the initial
Original file line number Diff line number Diff line change @@ -13900,11 +13900,11 @@ TNode<BoolT> CodeStubAssembler::
1390013900 return Word32NotEqual(flags, Int32Constant(0));
1390113901}
1390213902
13903- TNode<BoolT> CodeStubAssembler::
13904- IsAnyPromiseHookEnabledOrHasAsyncEventDelegate(TNode<Uint32T> flags) {
13903+ TNode<BoolT> CodeStubAssembler::NeedsAnyPromiseHooks(TNode<Uint32T> flags) {
1390513904 uint32_t mask = Isolate::PromiseHookFields::HasContextPromiseHook::kMask |
1390613905 Isolate::PromiseHookFields::HasIsolatePromiseHook::kMask |
13907- Isolate::PromiseHookFields::HasAsyncEventDelegate::kMask;
13906+ Isolate::PromiseHookFields::HasAsyncEventDelegate::kMask |
13907+ Isolate::PromiseHookFields::IsDebugActive::kMask;
1390813908 return IsSetWord32(flags, mask);
1390913909}
1391013910
Original file line number Diff line number Diff line change @@ -3565,12 +3565,10 @@ class V8_EXPORT_PRIVATE CodeStubAssembler
35653565 return IsAnyPromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate (
35663566 PromiseHookFlags ());
35673567 }
3568- TNode<BoolT> IsAnyPromiseHookEnabledOrHasAsyncEventDelegate (
3569- TNode<Uint32T> flags);
3570- TNode<BoolT>
3571- IsAnyPromiseHookEnabledOrHasAsyncEventDelegate () {
3572- return IsAnyPromiseHookEnabledOrHasAsyncEventDelegate (
3573- PromiseHookFlags ());
3568+
3569+ TNode<BoolT> NeedsAnyPromiseHooks (TNode<Uint32T> flags);
3570+ TNode<BoolT> NeedsAnyPromiseHooks () {
3571+ return NeedsAnyPromiseHooks (PromiseHookFlags ());
35743572 }
35753573
35763574 // for..in helpers
You can’t perform that action at this time.
0 commit comments