File tree 4 files changed +10
-11
lines changed
4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 36
36
37
37
# Reset this number to 0 on major V8 upgrades.
38
38
# Increment by one for each non-official patch applied to deps/v8.
39
- 'v8_embedder_string' : '-node.79 ' ,
39
+ 'v8_embedder_string' : '-node.80 ' ,
40
40
41
41
##### V8 defaults for Node.js #####
42
42
Original file line number Diff line number Diff line change 7
7
// https://tc39.es/ecma262/#sec-promise-jobs
8
8
namespace promise {
9
9
extern macro IsJSPromiseMap(Map): bool;
10
+ extern macro NeedsAnyPromiseHooks(): bool;
10
11
11
12
// https://tc39.es/ecma262/#sec-promiseresolvethenablejob
12
13
transitioning builtin
@@ -25,7 +26,7 @@ PromiseResolveThenableJob(implicit context: Context)(
25
26
const promiseThen = nativeContext[NativeContextSlot::PROMISE_THEN_INDEX];
26
27
const thenableMap = thenable.map;
27
28
if (TaggedEqual(then, promiseThen) && IsJSPromiseMap(thenableMap) &&
28
- !IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate () &&
29
+ !NeedsAnyPromiseHooks () &&
29
30
IsPromiseSpeciesLookupChainIntact(nativeContext, thenableMap)) {
30
31
// We know that the {thenable} is a JSPromise, which doesn't require
31
32
// 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::
12781
12781
return Word32NotEqual(flags, Int32Constant(0));
12782
12782
}
12783
12783
12784
- TNode<BoolT> CodeStubAssembler::
12785
- IsAnyPromiseHookEnabledOrHasAsyncEventDelegate(TNode<Uint32T> flags) {
12784
+ TNode<BoolT> CodeStubAssembler::NeedsAnyPromiseHooks(TNode<Uint32T> flags) {
12786
12785
uint32_t mask = Isolate::PromiseHookFields::HasContextPromiseHook::kMask |
12787
12786
Isolate::PromiseHookFields::HasIsolatePromiseHook::kMask |
12788
- Isolate::PromiseHookFields::HasAsyncEventDelegate::kMask;
12787
+ Isolate::PromiseHookFields::HasAsyncEventDelegate::kMask |
12788
+ Isolate::PromiseHookFields::IsDebugActive::kMask;
12789
12789
return IsSetWord32(flags, mask);
12790
12790
}
12791
12791
Original file line number Diff line number Diff line change @@ -3747,12 +3747,10 @@ class V8_EXPORT_PRIVATE CodeStubAssembler
3747
3747
return IsAnyPromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate (
3748
3748
PromiseHookFlags ());
3749
3749
}
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 ());
3756
3754
}
3757
3755
3758
3756
// for..in helpers
You can’t perform that action at this time.
0 commit comments