Chromium Code Reviews| Index: src/mark-compact.cc |
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
| index f065da1f94fb6ac507d0443bbd066f7c460a62bf..55599aeae58e179fd48814ae45e7083b71b2ee89 100644 |
| --- a/src/mark-compact.cc |
| +++ b/src/mark-compact.cc |
| @@ -2742,7 +2742,7 @@ void MarkCompactCollector::MigrateObject(Address dst, |
| Address src, |
| int size, |
| AllocationSpace dest) { |
| - HEAP_PROFILE(heap(), ObjectMoveEvent(src, dst)); |
| + HEAP_PROFILE(heap(), ObjectMoveEvent(src, dst, size)); |
| // TODO(hpayer): Replace these checks with asserts. |
| CHECK(heap()->AllowedToBeMigrated(HeapObject::FromAddress(src), dest)); |
| CHECK(dest != LO_SPACE && size <= Page::kMaxNonCodeHeapObjectSize); |
| @@ -2926,7 +2926,7 @@ bool MarkCompactCollector::TryPromoteObject(HeapObject* object, |
| ASSERT(target_space == heap()->old_pointer_space() || |
| target_space == heap()->old_data_space()); |
| Object* result; |
| - MaybeObject* maybe_result = target_space->AllocateRaw(object_size); |
| + MaybeObject* maybe_result = target_space->AllocateRawForMigration(object_size); |
|
loislo
2013/08/27 09:04:57
style: 80 symbols
Alexandra Mikhaylova
2013/09/19 16:03:38
Done.
|
| if (maybe_result->ToObject(&result)) { |
| HeapObject* target = HeapObject::cast(result); |
| MigrateObject(target->address(), |
| @@ -2999,7 +2999,7 @@ void MarkCompactCollector::EvacuateLiveObjectsFromPage(Page* p) { |
| int size = object->Size(); |
| - MaybeObject* target = space->AllocateRaw(size); |
| + MaybeObject* target = space->AllocateRawForMigration(size); |
| if (target->IsFailure()) { |
| // OS refused to give us memory. |
| V8::FatalProcessOutOfMemory("Evacuation"); |