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

Unified Diff: src/isolate.h

Issue 2650803003: [inspector] change target promise for kDebugWillHandle & kDebugDidHandle (Closed)
Patch Set: added missing guard in asyncTaskCreated Created 3 years, 11 months 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
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index d008b265a6ada80622d0dec4dc28e5790f2d747f..6d35c51830795c204d86d6b0d358666869a1a711 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1122,9 +1122,12 @@ class Isolate {
int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; }
#endif
- Address promise_hook_address() {
- return reinterpret_cast<Address>(&promise_hook_);
+ Address promise_hook_or_debug_is_active_address() {
+ return reinterpret_cast<Address>(&promise_hook_or_debug_is_active_);
}
+
+ void DebugStateUpdated();
+
void SetPromiseHook(PromiseHook hook);
void RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise,
Handle<Object> parent);
@@ -1370,6 +1373,7 @@ class Isolate {
AccessCompilerData* access_compiler_data_;
base::RandomNumberGenerator* random_number_generator_;
base::AtomicValue<RAILMode> rail_mode_;
+ bool promise_hook_or_debug_is_active_;
PromiseHook promise_hook_;
base::Mutex rail_mutex_;
double load_start_time_ms_;
« no previous file with comments | « src/inspector/v8-debugger.cc ('k') | src/isolate.cc » ('j') | src/runtime/runtime-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698