summaryrefslogtreecommitdiff
path: root/deps/v8/src/codegen/code-stub-assembler.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/codegen/code-stub-assembler.h')
-rw-r--r--deps/v8/src/codegen/code-stub-assembler.h40
1 files changed, 37 insertions, 3 deletions
diff --git a/deps/v8/src/codegen/code-stub-assembler.h b/deps/v8/src/codegen/code-stub-assembler.h
index 03af2cc5e2..702792d788 100644
--- a/deps/v8/src/codegen/code-stub-assembler.h
+++ b/deps/v8/src/codegen/code-stub-assembler.h
@@ -3497,10 +3497,44 @@ class V8_EXPORT_PRIVATE CodeStubAssembler
TNode<Context> context);
// Promise helpers
- TNode<BoolT> IsPromiseHookEnabled();
+ TNode<Uint32T> PromiseHookFlags();
TNode<BoolT> HasAsyncEventDelegate();
- TNode<BoolT> IsPromiseHookEnabledOrHasAsyncEventDelegate();
- TNode<BoolT> IsPromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate();
+ TNode<BoolT> IsContextPromiseHookEnabled(TNode<Uint32T> flags);
+ TNode<BoolT> IsContextPromiseHookEnabled() {
+ return IsContextPromiseHookEnabled(PromiseHookFlags());
+ }
+ TNode<BoolT> IsAnyPromiseHookEnabled(TNode<Uint32T> flags);
+ TNode<BoolT> IsAnyPromiseHookEnabled() {
+ return IsAnyPromiseHookEnabled(PromiseHookFlags());
+ }
+ TNode<BoolT> IsIsolatePromiseHookEnabledOrHasAsyncEventDelegate(
+ TNode<Uint32T> flags);
+ TNode<BoolT> IsIsolatePromiseHookEnabledOrHasAsyncEventDelegate() {
+ return IsIsolatePromiseHookEnabledOrHasAsyncEventDelegate(
+ PromiseHookFlags());
+ }
+ TNode<BoolT>
+ IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate(
+ TNode<Uint32T> flags);
+ TNode<BoolT>
+ IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate() {
+ return IsIsolatePromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate(
+ PromiseHookFlags());
+ }
+ TNode<BoolT> IsAnyPromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate(
+ TNode<Uint32T> flags);
+ TNode<BoolT>
+ IsAnyPromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate() {
+ return IsAnyPromiseHookEnabledOrDebugIsActiveOrHasAsyncEventDelegate(
+ PromiseHookFlags());
+ }
+ TNode<BoolT> IsAnyPromiseHookEnabledOrHasAsyncEventDelegate(
+ TNode<Uint32T> flags);
+ TNode<BoolT>
+ IsAnyPromiseHookEnabledOrHasAsyncEventDelegate() {
+ return IsAnyPromiseHookEnabledOrHasAsyncEventDelegate(
+ PromiseHookFlags());
+ }
// for..in helpers
void CheckPrototypeEnumCache(TNode<JSReceiver> receiver,