| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 CpuProfiler::is_profiling(isolate)) { | 1414 CpuProfiler::is_profiling(isolate)) { |
| 1415 if (target->IsSharedFunctionInfo()) { | 1415 if (target->IsSharedFunctionInfo()) { |
| 1416 PROFILE(isolate, SharedFunctionInfoMoveEvent( | 1416 PROFILE(isolate, SharedFunctionInfoMoveEvent( |
| 1417 source->address(), target->address())); | 1417 source->address(), target->address())); |
| 1418 } | 1418 } |
| 1419 } | 1419 } |
| 1420 #endif | 1420 #endif |
| 1421 } | 1421 } |
| 1422 | 1422 |
| 1423 if (marks_handling == TRANSFER_MARKS) { | 1423 if (marks_handling == TRANSFER_MARKS) { |
| 1424 Marking::TransferColor(source, target); | 1424 if (Marking::TransferColor(source, target)) { |
| 1425 MemoryChunk::IncrementLiveBytes(target->address(), size); |
| 1426 } |
| 1425 } | 1427 } |
| 1426 | 1428 |
| 1427 return target; | 1429 return target; |
| 1428 } | 1430 } |
| 1429 | 1431 |
| 1430 template<ObjectContents object_contents, SizeRestriction size_restriction> | 1432 template<ObjectContents object_contents, SizeRestriction size_restriction> |
| 1431 static inline void EvacuateObject(Map* map, | 1433 static inline void EvacuateObject(Map* map, |
| 1432 HeapObject** slot, | 1434 HeapObject** slot, |
| 1433 HeapObject* object, | 1435 HeapObject* object, |
| 1434 int object_size) { | 1436 int object_size) { |
| (...skipping 4396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5831 } | 5833 } |
| 5832 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 5834 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
| 5833 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 5835 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
| 5834 next = chunk->next_chunk(); | 5836 next = chunk->next_chunk(); |
| 5835 isolate_->memory_allocator()->Free(chunk); | 5837 isolate_->memory_allocator()->Free(chunk); |
| 5836 } | 5838 } |
| 5837 chunks_queued_for_free_ = NULL; | 5839 chunks_queued_for_free_ = NULL; |
| 5838 } | 5840 } |
| 5839 | 5841 |
| 5840 } } // namespace v8::internal | 5842 } } // namespace v8::internal |
| OLD | NEW |