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

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

Issue 1216153004: Remove deprecated --incremental-code-compaction flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | « src/flag-definitions.h ('k') | no next file » | 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/v8.h" 5 #include "src/v8.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/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 static_cast<int>(free), static_cast<double>(free) * 100 / reserved); 253 static_cast<int>(free), static_cast<double>(free) * 100 / reserved);
254 } 254 }
255 255
256 256
257 bool MarkCompactCollector::StartCompaction(CompactionMode mode) { 257 bool MarkCompactCollector::StartCompaction(CompactionMode mode) {
258 if (!compacting_) { 258 if (!compacting_) {
259 DCHECK(evacuation_candidates_.length() == 0); 259 DCHECK(evacuation_candidates_.length() == 0);
260 260
261 CollectEvacuationCandidates(heap()->old_space()); 261 CollectEvacuationCandidates(heap()->old_space());
262 262
263 if (FLAG_compact_code_space && (mode == NON_INCREMENTAL_COMPACTION || 263 if (FLAG_compact_code_space) {
264 FLAG_incremental_code_compaction)) {
265 CollectEvacuationCandidates(heap()->code_space()); 264 CollectEvacuationCandidates(heap()->code_space());
266 } else if (FLAG_trace_fragmentation) { 265 } else if (FLAG_trace_fragmentation) {
267 TraceFragmentation(heap()->code_space()); 266 TraceFragmentation(heap()->code_space());
268 } 267 }
269 268
270 if (FLAG_trace_fragmentation) { 269 if (FLAG_trace_fragmentation) {
271 TraceFragmentation(heap()->map_space()); 270 TraceFragmentation(heap()->map_space());
272 } 271 }
273 272
274 heap()->old_space()->EvictEvacuationCandidatesFromFreeLists(); 273 heap()->old_space()->EvictEvacuationCandidatesFromFreeLists();
(...skipping 4350 matching lines...) Expand 10 before | Expand all | Expand 10 after
4625 SlotsBuffer* buffer = *buffer_address; 4624 SlotsBuffer* buffer = *buffer_address;
4626 while (buffer != NULL) { 4625 while (buffer != NULL) {
4627 SlotsBuffer* next_buffer = buffer->next(); 4626 SlotsBuffer* next_buffer = buffer->next();
4628 DeallocateBuffer(buffer); 4627 DeallocateBuffer(buffer);
4629 buffer = next_buffer; 4628 buffer = next_buffer;
4630 } 4629 }
4631 *buffer_address = NULL; 4630 *buffer_address = NULL;
4632 } 4631 }
4633 } // namespace internal 4632 } // namespace internal
4634 } // namespace v8 4633 } // namespace v8
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698