Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 3f0eeb4301794db78f1480c2b1fac4556db7cd0f..9789118f777bb24e337db1a84493d065aa0142a9 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1612,6 +1612,7 @@ Object* FixedArray::get(int index) { |
void FixedArray::set(int index, Smi* value) { |
ASSERT(map() != HEAP->fixed_cow_array_map()); |
+ ASSERT(index >= 0 && index < this->length()); |
ASSERT(reinterpret_cast<Object*>(value)->IsSmi()); |
int offset = kHeaderSize + index * kPointerSize; |
WRITE_FIELD(this, offset, value); |