Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index ed3b1f014a237824528fd361ccd6bfc82ae10989..5feb73d739af25e1927e9b6d65814d4f8a1764b8 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1183,11 +1183,11 @@ void TranslationBuffer::Add(int32_t value) { |
int32_t TranslationIterator::Next() { |
- ASSERT(HasNext()); |
// Run through the bytes until we reach one with a least significant |
// bit of zero (marks the end). |
uint32_t bits = 0; |
for (int i = 0; true; i += 7) { |
+ ASSERT(HasNext()); |
uint8_t next = buffer_->get(index_++); |
bits |= (next >> 1) << i; |
if ((next & 1) == 0) break; |