Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: src/heap/mark-compact.cc

Issue 1389293005: [heap] Fix searching for a node in FreeListCategory (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698