| Index: src/isolate.h
|
| diff --git a/src/isolate.h b/src/isolate.h
|
| index e5f1766a831f47a52197e459b4858518dc6089ca..d31db62335efcccf66951d00be787b9a7bc6adc3 100644
|
| --- a/src/isolate.h
|
| +++ b/src/isolate.h
|
| @@ -415,6 +415,7 @@ typedef List<HeapObject*> DebugObjectCache;
|
| V(bool, fp_stubs_generated, false) \
|
| V(uint32_t, per_isolate_assert_data, 0xFFFFFFFFu) \
|
| V(PromiseRejectCallback, promise_reject_callback, nullptr) \
|
| + V(PromiseHook, promise_hook, nullptr) \
|
| V(const v8::StartupData*, snapshot_blob, nullptr) \
|
| V(int, code_and_metadata_size, 0) \
|
| V(int, bytecode_and_metadata_size, 0) \
|
| @@ -1125,12 +1126,13 @@ class Isolate {
|
| int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; }
|
| #endif
|
|
|
| - Address is_promisehook_enabled_address() {
|
| - return reinterpret_cast<Address>(&is_promisehook_enabled_);
|
| + Address is_promise_hook_enabled_address() {
|
| + return reinterpret_cast<Address>(&is_promise_hook_enabled_);
|
| }
|
| - bool IsPromiseHookEnabled() { return is_promisehook_enabled_; }
|
| - void EnablePromiseHook();
|
| - void DisablePromiseHook();
|
| + bool IsPromiseHookEnabled() { return is_promise_hook_enabled_; }
|
| + void SetPromiseHook(PromiseHook hook);
|
| + void RunPromiseHook(PromiseHookType type, Handle<JSObject> promise,
|
| + Handle<Object> parent);
|
|
|
| // Support for dynamically disabling tail call elimination.
|
| Address is_tail_call_elimination_enabled_address() {
|
| @@ -1373,7 +1375,7 @@ class Isolate {
|
| bool initialized_from_snapshot_;
|
|
|
| // True if PromiseHook feature is enabled.
|
| - bool is_promisehook_enabled_;
|
| + bool is_promise_hook_enabled_;
|
|
|
| // True if ES2015 tail call elimination feature is enabled.
|
| bool is_tail_call_elimination_enabled_;
|
|
|