Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index 56eb8cbdd998aaac176c4920e07c4cef88cab7e0..c28e46885b4d92b88cca4ddc0fc303a4a42f74e7 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -98,7 +98,9 @@ BreakLocation::CodeIterator::CodeIterator(Handle<DebugInfo> debug_info, |
: Iterator(debug_info), |
reloc_iterator_(debug_info->abstract_code()->GetCode(), |
GetModeMask(type)) { |
- if (!Done()) Next(); |
+ // There is at least one break location. |
+ DCHECK(!Done()); |
+ Next(); |
} |
int BreakLocation::CodeIterator::GetModeMask(BreakLocatorType type) { |
@@ -179,7 +181,9 @@ BreakLocation::BytecodeArrayIterator::BytecodeArrayIterator( |
->source_position_table()), |
break_locator_type_(type), |
start_position_(debug_info->shared()->start_position()) { |
- if (!Done()) Next(); |
+ // There is at least one break location. |
+ DCHECK(!Done()); |
+ Next(); |
} |
void BreakLocation::BytecodeArrayIterator::Next() { |