Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: src/code-stub-assembler.cc

Issue 2566483002: [promisehook] Add is_promisehook_enabled (Closed)
Patch Set: rename var Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/external-reference-table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/external-reference-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698