| Index: src/objects-debug.cc
|
| ===================================================================
|
| --- src/objects-debug.cc (revision 7267)
|
| +++ src/objects-debug.cc (working copy)
|
| @@ -178,7 +178,7 @@
|
|
|
| void HeapObject::VerifyHeapPointer(Object* p) {
|
| ASSERT(p->IsHeapObject());
|
| - ASSERT(Heap::Contains(HeapObject::cast(p)));
|
| + ASSERT(HEAP->Contains(HeapObject::cast(p)));
|
| }
|
|
|
|
|
| @@ -241,18 +241,18 @@
|
| map()->NextFreePropertyIndex()));
|
| }
|
| ASSERT(map()->has_fast_elements() ==
|
| - (elements()->map() == Heap::fixed_array_map() ||
|
| - elements()->map() == Heap::fixed_cow_array_map()));
|
| + (elements()->map() == GetHeap()->fixed_array_map() ||
|
| + elements()->map() == GetHeap()->fixed_cow_array_map()));
|
| ASSERT(map()->has_fast_elements() == HasFastElements());
|
| }
|
|
|
|
|
| void Map::MapVerify() {
|
| - ASSERT(!Heap::InNewSpace(this));
|
| + ASSERT(!HEAP->InNewSpace(this));
|
| ASSERT(FIRST_TYPE <= instance_type() && instance_type() <= LAST_TYPE);
|
| ASSERT(instance_size() == kVariableSizeSentinel ||
|
| (kPointerSize <= instance_size() &&
|
| - instance_size() < Heap::Capacity()));
|
| + instance_size() < HEAP->Capacity()));
|
| VerifyHeapPointer(prototype());
|
| VerifyHeapPointer(instance_descriptors());
|
| }
|
| @@ -261,7 +261,7 @@
|
| void Map::SharedMapVerify() {
|
| MapVerify();
|
| ASSERT(is_shared());
|
| - ASSERT_EQ(Heap::empty_descriptor_array(), instance_descriptors());
|
| + ASSERT_EQ(GetHeap()->empty_descriptor_array(), instance_descriptors());
|
| ASSERT_EQ(0, pre_allocated_property_fields());
|
| ASSERT_EQ(0, unused_property_fields());
|
| ASSERT_EQ(StaticVisitorBase::GetVisitorId(instance_type(), instance_size()),
|
| @@ -315,7 +315,7 @@
|
| CHECK(IsString());
|
| CHECK(length() >= 0 && length() <= Smi::kMaxValue);
|
| if (IsSymbol()) {
|
| - CHECK(!Heap::InNewSpace(this));
|
| + CHECK(!HEAP->InNewSpace(this));
|
| }
|
| }
|
|
|
| @@ -379,7 +379,7 @@
|
| VerifyHeapPointer(to_string());
|
| Object* number = to_number();
|
| if (number->IsHeapObject()) {
|
| - ASSERT(number == Heap::nan_value());
|
| + ASSERT(number == HEAP->nan_value());
|
| } else {
|
| ASSERT(number->IsSmi());
|
| int value = Smi::cast(number)->value();
|
| @@ -590,8 +590,9 @@
|
| int holes = 0;
|
| FixedArray* e = FixedArray::cast(elements());
|
| int len = e->length();
|
| + Heap* heap = HEAP;
|
| for (int i = 0; i < len; i++) {
|
| - if (e->get(i) == Heap::the_hole_value()) holes++;
|
| + if (e->get(i) == heap->the_hole_value()) holes++;
|
| }
|
| info->number_of_fast_used_elements_ += len - holes;
|
| info->number_of_fast_unused_elements_ += holes;
|
|
|