Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index 38b2960e116d230ea060d26cae3deac51a30c28d..688f4c1a29d8ae961e7bf50c223b2f40ba27b6fb 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -8247,11 +8247,10 @@ Node* CodeStubAssembler::IsDebugActive() { |
} |
Node* CodeStubAssembler::IsPromiseHookEnabled() { |
- Node* const is_promisehook_enabled = |
- Load(MachineType::Uint8(), |
- ExternalConstant( |
- ExternalReference::is_promisehook_enabled_address(isolate()))); |
- return Word32NotEqual(is_promisehook_enabled, Int32Constant(0)); |
+ Node* const promise_hook = Load( |
+ MachineType::Pointer(), |
+ ExternalConstant(ExternalReference::promise_hook_address(isolate()))); |
+ return WordNotEqual(promise_hook, IntPtrConstant(0)); |
} |
Node* CodeStubAssembler::AllocateJSPromise(Node* context) { |