Chromium Code Reviews| Index: src/code-stub-assembler.cc |
| diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
| index 388af31c040fd6bf3f0720f769bfc5b0c7ab400b..45d36c0ddaa0467374de3b703f80b3cdf1b17969 100644 |
| --- a/src/code-stub-assembler.cc |
| +++ b/src/code-stub-assembler.cc |
| @@ -8237,5 +8237,13 @@ Node* CodeStubAssembler::IsDebugActive() { |
| return WordNotEqual(is_debug_active, Int32Constant(0)); |
| } |
| +Node* CodeStubAssembler::IsPromiseHookEnabled() { |
| + Node* is_debug_active = |
|
Igor Sheludko
2016/12/08 22:50:57
Please update the name of the node.
gsathya
2016/12/08 23:42:57
oops, done
|
| + Load(MachineType::Uint8(), |
| + ExternalConstant( |
| + ExternalReference::is_promisehook_enabled_address(isolate()))); |
| + return WordNotEqual(is_debug_active, Int32Constant(0)); |
| +} |
| + |
| } // namespace internal |
| } // namespace v8 |