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

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

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/liveedit.cc ('k') | src/mips/code-stubs-mips.cc » ('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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/atomicops.h" 7 #include "src/base/atomicops.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compilation-cache.h" 9 #include "src/compilation-cache.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 4206 matching lines...) Expand 10 before | Expand all | Expand 10 after
4217 if (how_to_sweep == PARALLEL_CONSERVATIVE || 4217 if (how_to_sweep == PARALLEL_CONSERVATIVE ||
4218 how_to_sweep == CONCURRENT_CONSERVATIVE) { 4218 how_to_sweep == CONCURRENT_CONSERVATIVE) {
4219 StartSweeperThreads(); 4219 StartSweeperThreads();
4220 } 4220 }
4221 4221
4222 if (how_to_sweep == PARALLEL_CONSERVATIVE) { 4222 if (how_to_sweep == PARALLEL_CONSERVATIVE) {
4223 WaitUntilSweepingCompleted(); 4223 WaitUntilSweepingCompleted();
4224 } 4224 }
4225 } 4225 }
4226 RemoveDeadInvalidatedCode(); 4226 RemoveDeadInvalidatedCode();
4227 SweepSpace(heap()->code_space(), PRECISE);
4227 4228
4228 { GCTracer::Scope sweep_scope(tracer_, GCTracer::Scope::MC_SWEEP_CODE); 4229 SweepSpace(heap()->cell_space(), PRECISE);
4229 SweepSpace(heap()->code_space(), PRECISE); 4230 SweepSpace(heap()->property_cell_space(), PRECISE);
4230 }
4231
4232 { GCTracer::Scope sweep_scope(tracer_, GCTracer::Scope::MC_SWEEP_CELL);
4233 SweepSpace(heap()->cell_space(), PRECISE);
4234 SweepSpace(heap()->property_cell_space(), PRECISE);
4235 }
4236 4231
4237 EvacuateNewSpaceAndCandidates(); 4232 EvacuateNewSpaceAndCandidates();
4238 4233
4239 // ClearNonLiveTransitions depends on precise sweeping of map space to 4234 // ClearNonLiveTransitions depends on precise sweeping of map space to
4240 // detect whether unmarked map became dead in this collection or in one 4235 // detect whether unmarked map became dead in this collection or in one
4241 // of the previous ones. 4236 // of the previous ones.
4242 { GCTracer::Scope sweep_scope(tracer_, GCTracer::Scope::MC_SWEEP_MAP); 4237 SweepSpace(heap()->map_space(), PRECISE);
4243 SweepSpace(heap()->map_space(), PRECISE);
4244 }
4245 4238
4246 // Deallocate unmarked objects and clear marked bits for marked objects. 4239 // Deallocate unmarked objects and clear marked bits for marked objects.
4247 heap_->lo_space()->FreeUnmarkedObjects(); 4240 heap_->lo_space()->FreeUnmarkedObjects();
4248 4241
4249 // Deallocate evacuated candidate pages. 4242 // Deallocate evacuated candidate pages.
4250 ReleaseEvacuationCandidates(); 4243 ReleaseEvacuationCandidates();
4251 } 4244 }
4252 4245
4253 4246
4254 void MarkCompactCollector::ParallelSweepSpaceComplete(PagedSpace* space) { 4247 void MarkCompactCollector::ParallelSweepSpaceComplete(PagedSpace* space) {
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
4488 while (buffer != NULL) { 4481 while (buffer != NULL) {
4489 SlotsBuffer* next_buffer = buffer->next(); 4482 SlotsBuffer* next_buffer = buffer->next();
4490 DeallocateBuffer(buffer); 4483 DeallocateBuffer(buffer);
4491 buffer = next_buffer; 4484 buffer = next_buffer;
4492 } 4485 }
4493 *buffer_address = NULL; 4486 *buffer_address = NULL;
4494 } 4487 }
4495 4488
4496 4489
4497 } } // namespace v8::internal 4490 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698