Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index daa5a4a5bdad825e7d73fc42531df9e23ac848b6..95d9c83b5179ce4002fa0b3818e8d535ae795c20 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -2312,6 +2312,13 @@ static void RightTrimFixedArray(Heap* heap, FixedArray* elms, int to_trim) { |
| MemoryChunk::IncrementLiveBytesFromMutator(elms->address(), -size_delta); |
| } |
| } |
| + |
| + // This repeating record is necessary because the array may not be moved |
| + // during GC, and size has to be adjusted nevetheless. |
|
loislo
2013/08/27 09:04:57
tipo: nevertheless
Alexandra Mikhaylova
2013/09/19 16:03:38
Done.
|
| + HeapProfiler* profiler = heap->isolate()->heap_profiler(); |
| + if (profiler->is_tracking_allocations()) { |
| + profiler->NewObjectEvent(elms->address(), elms->Size()); |
|
loislo
2013/08/27 09:04:57
Sounds like we need UpdateObjectSizeEvent method.
Hannes Payer (out of office)
2013/08/28 09:51:32
yes, an update object size event would be the righ
Alexandra Mikhaylova
2013/09/19 16:03:38
Done.
Alexandra Mikhaylova
2013/09/19 16:03:38
Done.
|
| + } |
| } |