| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index c291365b37c81cb840271a69d8236d94dd8e2f57..f025c7f3b05de1fcdd222db82e0e72a2a1c94bf2 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -1404,7 +1404,7 @@ class ScavengingVisitor : public StaticVisitorBase {
|
| (object_size <= Page::kMaxHeapObjectSize));
|
| ASSERT(object->Size() == object_size);
|
|
|
| - Heap* heap = map->heap();
|
| + Heap* heap = map->GetHeap();
|
| if (heap->ShouldBePromoted(object->address(), object_size)) {
|
| MaybeObject* maybe_result;
|
|
|
| @@ -1492,13 +1492,13 @@ class ScavengingVisitor : public StaticVisitorBase {
|
|
|
| if (marks_handling == IGNORE_MARKS &&
|
| ConsString::cast(object)->unchecked_second() ==
|
| - map->heap()->empty_string()) {
|
| + map->GetHeap()->empty_string()) {
|
| HeapObject* first =
|
| HeapObject::cast(ConsString::cast(object)->unchecked_first());
|
|
|
| *slot = first;
|
|
|
| - if (!map->heap()->InNewSpace(first)) {
|
| + if (!map->GetHeap()->InNewSpace(first)) {
|
| object->set_map_word(MapWord::FromForwardingAddress(first));
|
| return;
|
| }
|
|
|