Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index b165ad46382603f918f6f42d5fa55e960abcbba7..f629d9f19f52b122f9f71c838c787ab91314df5f 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2092,28 +2092,21 @@ void FixedArray::NoWriteBarrierSet(FixedArray* array, |
void FixedArray::set_undefined(int index) { |
- ASSERT(map() != HEAP->fixed_cow_array_map()); |
- set_undefined(GetHeap(), index); |
-} |
- |
- |
-void FixedArray::set_undefined(Heap* heap, int index) { |
+ ASSERT(map() != GetHeap()->fixed_cow_array_map()); |
ASSERT(index >= 0 && index < this->length()); |
- ASSERT(!heap->InNewSpace(heap->undefined_value())); |
- WRITE_FIELD(this, kHeaderSize + index * kPointerSize, |
- heap->undefined_value()); |
+ ASSERT(!GetHeap()->InNewSpace(GetHeap()->undefined_value())); |
+ WRITE_FIELD(this, |
+ kHeaderSize + index * kPointerSize, |
+ GetHeap()->undefined_value()); |
} |
void FixedArray::set_null(int index) { |
- set_null(GetHeap(), index); |
-} |
- |
- |
-void FixedArray::set_null(Heap* heap, int index) { |
ASSERT(index >= 0 && index < this->length()); |
- ASSERT(!heap->InNewSpace(heap->null_value())); |
- WRITE_FIELD(this, kHeaderSize + index * kPointerSize, heap->null_value()); |
+ ASSERT(!GetHeap()->InNewSpace(GetHeap()->null_value())); |
+ WRITE_FIELD(this, |
+ kHeaderSize + index * kPointerSize, |
+ GetHeap()->null_value()); |
} |