Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 2e7a9de11df64722ca94e48ca58fe1d8f1f14230..720812316887b43f5c1b944b2242a54f309cc3c5 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2388,7 +2388,8 @@ void FixedArray::set(int index, Smi* value) { |
void FixedArray::set(int index, Object* value) { |
DCHECK_NE(GetHeap()->fixed_cow_array_map(), map()); |
DCHECK(IsFixedArray()); |
- DCHECK(index >= 0 && index < this->length()); |
+ DCHECK_GE(index, 0); |
+ DCHECK_LT(index, this->length()); |
int offset = kHeaderSize + index * kPointerSize; |
WRITE_FIELD(this, offset, value); |
WRITE_BARRIER(GetHeap(), this, offset, value); |