Index: src/debug/mips/debug-mips.cc |
diff --git a/src/debug/mips/debug-mips.cc b/src/debug/mips/debug-mips.cc |
index 8e00d61ef5dfd31653f986b2bfd57417df0ba93b..49320d8a815489e4332a3adb93f645e1c49f55b1 100644 |
--- a/src/debug/mips/debug-mips.cc |
+++ b/src/debug/mips/debug-mips.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: |
// nop(DEBUG_BREAK_NOP) - nop(1) is sll(zero_reg, zero_reg, 1) |