Index: src/debug/arm/debug-arm.cc |
diff --git a/src/debug/arm/debug-arm.cc b/src/debug/arm/debug-arm.cc |
index fa3540e53bac2eef70fef969fc858b0f3264d833..29e4827be4301e4373c619baeeeaaf2a125f1044 100644 |
--- a/src/debug/arm/debug-arm.cc |
+++ b/src/debug/arm/debug-arm.cc |
@@ -41,7 +41,7 @@ void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { |
void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, |
Handle<Code> code) { |
- DCHECK_EQ(Code::BUILTIN, code->kind()); |
+ DCHECK(code->is_debug_stub()); |
CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); |
// Patch the code changing the debug break slot code from |
// mov r2, r2 |