Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index ce76b7132685b87b28a9a0a3feef884cceaa7919..b03007755e5ee12c68c7a7747f02f13d67c197b1 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -7709,5 +7709,12 @@ compiler::Node* CodeStubAssembler::IsHoleyFastElementsKind( |
return Word32Equal(holey_elements, Int32Constant(1)); |
} |
+compiler::Node* CodeStubAssembler::IsDebugActive() { |
+ Node* is_debug_active = Load( |
+ MachineType::Uint8(), |
+ ExternalConstant(ExternalReference::debug_is_active_address(isolate()))); |
+ return WordNotEqual(is_debug_active, Int32Constant(0)); |
+} |
+ |
} // namespace internal |
} // namespace v8 |