OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/heap/mark-compact.h" | 5 #include "src/heap/mark-compact.h" |
6 | 6 |
7 #include "src/base/atomicops.h" | 7 #include "src/base/atomicops.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/base/sys-info.h" | 9 #include "src/base/sys-info.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 if (FLAG_compact_code_space) { | 279 if (FLAG_compact_code_space) { |
280 CollectEvacuationCandidates(heap()->code_space()); | 280 CollectEvacuationCandidates(heap()->code_space()); |
281 } else if (FLAG_trace_fragmentation) { | 281 } else if (FLAG_trace_fragmentation) { |
282 TraceFragmentation(heap()->code_space()); | 282 TraceFragmentation(heap()->code_space()); |
283 } | 283 } |
284 | 284 |
285 if (FLAG_trace_fragmentation) { | 285 if (FLAG_trace_fragmentation) { |
286 TraceFragmentation(heap()->map_space()); | 286 TraceFragmentation(heap()->map_space()); |
287 } | 287 } |
288 | 288 |
289 heap()->old_space()->EvictEvacuationCandidatesFromFreeLists(); | 289 heap()->old_space()->EvictEvacuationCandidatesFromLinearAllocationArea(); |
290 heap()->code_space()->EvictEvacuationCandidatesFromFreeLists(); | 290 heap()->code_space()->EvictEvacuationCandidatesFromLinearAllocationArea(); |
291 | 291 |
292 compacting_ = evacuation_candidates_.length() > 0; | 292 compacting_ = evacuation_candidates_.length() > 0; |
293 } | 293 } |
294 | 294 |
295 return compacting_; | 295 return compacting_; |
296 } | 296 } |
297 | 297 |
298 | 298 |
299 void MarkCompactCollector::ClearInvalidStoreAndSlotsBufferEntries() { | 299 void MarkCompactCollector::ClearInvalidStoreAndSlotsBufferEntries() { |
300 heap_->store_buffer()->ClearInvalidStoreBufferEntries(); | 300 heap_->store_buffer()->ClearInvalidStoreBufferEntries(); |
(...skipping 4301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4602 MarkBit mark_bit = Marking::MarkBitFrom(host); | 4602 MarkBit mark_bit = Marking::MarkBitFrom(host); |
4603 if (Marking::IsBlack(mark_bit)) { | 4603 if (Marking::IsBlack(mark_bit)) { |
4604 RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host); | 4604 RelocInfo rinfo(pc, RelocInfo::CODE_TARGET, 0, host); |
4605 RecordRelocSlot(&rinfo, target); | 4605 RecordRelocSlot(&rinfo, target); |
4606 } | 4606 } |
4607 } | 4607 } |
4608 } | 4608 } |
4609 | 4609 |
4610 } // namespace internal | 4610 } // namespace internal |
4611 } // namespace v8 | 4611 } // namespace v8 |
OLD | NEW |