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

Unified Diff: src/isolate.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/isolate.h ('k') | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 10c69ad3ff833aa2cabcd9a46665e6c60a257990..cb3c4a79dca7aa2feb41a3e392335d5d7de5995c 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2129,6 +2129,7 @@ Isolate::Isolate(bool enable_serializer)
serializer_enabled_(enable_serializer),
has_fatal_error_(false),
initialized_from_snapshot_(false),
+ is_promisehook_enabled_(false),
is_tail_call_elimination_enabled_(true),
is_isolate_in_background_(false),
cpu_profiler_(NULL),
@@ -3140,6 +3141,9 @@ void Isolate::FireCallCompletedCallback() {
}
}
+void Isolate::EnablePromiseHook() { is_promisehook_enabled_ = true; }
+
+void Isolate::DisablePromiseHook() { is_promisehook_enabled_ = false; }
void Isolate::SetPromiseRejectCallback(PromiseRejectCallback callback) {
promise_reject_callback_ = callback;
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698