File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636
3737 # Reset this number to 0 on major V8 upgrades.
3838 # Increment by one for each non-official patch applied to deps/v8.
39- 'v8_embedder_string' : '-node.79 ' ,
39+ 'v8_embedder_string' : '-node.80 ' ,
4040
4141 ##### V8 defaults for Node.js #####
4242
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 = nativeContext[NativeContextSlot::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 @@ -12781,11 +12781,11 @@ TNode<BoolT> CodeStubAssembler::
1278112781 return Word32NotEqual(flags, Int32Constant(0));
1278212782}
1278312783
12784- TNode<BoolT> CodeStubAssembler::
12785- IsAnyPromiseHookEnabledOrHasAsyncEventDelegate(TNode<Uint32T> flags) {
12784+ TNode<BoolT> CodeStubAssembler::NeedsAnyPromiseHooks(TNode<Uint32T> flags) {
1278612785 uint32_t mask = Isolate::PromiseHookFields::HasContextPromiseHook::kMask |
1278712786 Isolate::PromiseHookFields::HasIsolatePromiseHook::kMask |
12788- Isolate::PromiseHookFields::HasAsyncEventDelegate::kMask;
12787+ Isolate::PromiseHookFields::HasAsyncEventDelegate::kMask |
12788+ Isolate::PromiseHookFields::IsDebugActive::kMask;
1278912789 return IsSetWord32(flags, mask);
1279012790}
1279112791
Original file line number Diff line number Diff line change @@ -3747,12 +3747,10 @@ class V8_EXPORT_PRIVATE CodeStubAssembler
37473747 return IsAnyPromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate (
37483748 PromiseHookFlags ());
37493749 }
3750- TNode<BoolT> IsAnyPromiseHookEnabledOrHasAsyncEventDelegate (
3751- TNode<Uint32T> flags);
3752- TNode<BoolT>
3753- IsAnyPromiseHookEnabledOrHasAsyncEventDelegate () {
3754- return IsAnyPromiseHookEnabledOrHasAsyncEventDelegate (
3755- PromiseHookFlags ());
3750+
3751+ TNode<BoolT> NeedsAnyPromiseHooks (TNode<Uint32T> flags);
3752+ TNode<BoolT> NeedsAnyPromiseHooks () {
3753+ return NeedsAnyPromiseHooks (PromiseHookFlags ());
37563754 }
37573755
37583756 // for..in helpers
You can’t perform that action at this time.
0 commit comments