OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #include "src/code-stub-assembler.h" | 4 #include "src/code-stub-assembler.h" |
5 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
6 #include "src/frames-inl.h" | 6 #include "src/frames-inl.h" |
7 #include "src/frames.h" | 7 #include "src/frames.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 8219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8230 return Word32Equal(holey_elements, Int32Constant(1)); | 8230 return Word32Equal(holey_elements, Int32Constant(1)); |
8231 } | 8231 } |
8232 | 8232 |
8233 Node* CodeStubAssembler::IsDebugActive() { | 8233 Node* CodeStubAssembler::IsDebugActive() { |
8234 Node* is_debug_active = Load( | 8234 Node* is_debug_active = Load( |
8235 MachineType::Uint8(), | 8235 MachineType::Uint8(), |
8236 ExternalConstant(ExternalReference::debug_is_active_address(isolate()))); | 8236 ExternalConstant(ExternalReference::debug_is_active_address(isolate()))); |
8237 return WordNotEqual(is_debug_active, Int32Constant(0)); | 8237 return WordNotEqual(is_debug_active, Int32Constant(0)); |
8238 } | 8238 } |
8239 | 8239 |
| 8240 Node* CodeStubAssembler::IsPromiseHookEnabled() { |
| 8241 Node* const is_promisehook_enabled = |
| 8242 Load(MachineType::Uint8(), |
| 8243 ExternalConstant( |
| 8244 ExternalReference::is_promisehook_enabled_address(isolate()))); |
| 8245 return WordNotEqual(is_promisehook_enabled, Int32Constant(0)); |
| 8246 } |
| 8247 |
8240 } // namespace internal | 8248 } // namespace internal |
8241 } // namespace v8 | 8249 } // namespace v8 |
OLD | NEW |