Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index 388af31c040fd6bf3f0720f769bfc5b0c7ab400b..c6d79716a57a827279d3700c7c26e6ea72e8cafa 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -8237,5 +8237,13 @@ Node* CodeStubAssembler::IsDebugActive() { |
return WordNotEqual(is_debug_active, Int32Constant(0)); |
} |
+Node* CodeStubAssembler::IsPromiseHookEnabled() { |
+ Node* const is_promisehook_enabled = |
+ Load(MachineType::Uint8(), |
+ ExternalConstant( |
+ ExternalReference::is_promisehook_enabled_address(isolate()))); |
+ return WordNotEqual(is_promisehook_enabled, Int32Constant(0)); |
+} |
+ |
} // namespace internal |
} // namespace v8 |