Index: src/debug/ia32/debug-ia32.cc |
diff --git a/src/debug/ia32/debug-ia32.cc b/src/debug/ia32/debug-ia32.cc |
index 056407f29a05b7035d7eba7a03a1a14d58b19882..8e4dee7797f8dac7e3a8cedcb958db3a405157d8 100644 |
--- a/src/debug/ia32/debug-ia32.cc |
+++ b/src/debug/ia32/debug-ia32.cc |
@@ -38,7 +38,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()); |
static const int kSize = Assembler::kDebugBreakSlotLength; |
CodePatcher patcher(isolate, pc, kSize); |