Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index e5f1766a831f47a52197e459b4858518dc6089ca..1fc4feef4feeecc7c6466d36cc1bc7a92df1340b 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -1125,12 +1125,12 @@ class Isolate { |
int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; } |
#endif |
- Address is_promisehook_enabled_address() { |
- return reinterpret_cast<Address>(&is_promisehook_enabled_); |
+ Address promise_hook_address() { |
+ return reinterpret_cast<Address>(&promise_hook_); |
} |
- bool IsPromiseHookEnabled() { return is_promisehook_enabled_; } |
- void EnablePromiseHook(); |
- void DisablePromiseHook(); |
+ void SetPromiseHook(PromiseHook hook); |
+ void RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, |
+ Handle<Object> parent); |
// Support for dynamically disabling tail call elimination. |
Address is_tail_call_elimination_enabled_address() { |
@@ -1373,7 +1373,7 @@ class Isolate { |
bool initialized_from_snapshot_; |
// True if PromiseHook feature is enabled. |
- bool is_promisehook_enabled_; |
+ PromiseHook promise_hook_; |
// True if ES2015 tail call elimination feature is enabled. |
bool is_tail_call_elimination_enabled_; |