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

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

Issue 1284643003: [heap] Remove obsolete constructors from SemiSpaceIterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/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 3639 matching lines...) Expand 10 before | Expand all | Expand 10 after
3650 EvacuatePages(); 3650 EvacuatePages();
3651 } 3651 }
3652 3652
3653 // Second pass: find pointers to new space and update them. 3653 // Second pass: find pointers to new space and update them.
3654 PointersUpdatingVisitor updating_visitor(heap()); 3654 PointersUpdatingVisitor updating_visitor(heap());
3655 3655
3656 { 3656 {
3657 GCTracer::Scope gc_scope(heap()->tracer(), 3657 GCTracer::Scope gc_scope(heap()->tracer(),
3658 GCTracer::Scope::MC_UPDATE_NEW_TO_NEW_POINTERS); 3658 GCTracer::Scope::MC_UPDATE_NEW_TO_NEW_POINTERS);
3659 // Update pointers in to space. 3659 // Update pointers in to space.
3660 SemiSpaceIterator to_it(heap()->new_space()->bottom(), 3660 SemiSpaceIterator to_it(heap()->new_space());
3661 heap()->new_space()->top());
3662 for (HeapObject* object = to_it.Next(); object != NULL; 3661 for (HeapObject* object = to_it.Next(); object != NULL;
3663 object = to_it.Next()) { 3662 object = to_it.Next()) {
3664 Map* map = object->map(); 3663 Map* map = object->map();
3665 object->IterateBody(map->instance_type(), object->SizeFromMap(map), 3664 object->IterateBody(map->instance_type(), object->SizeFromMap(map),
3666 &updating_visitor); 3665 &updating_visitor);
3667 } 3666 }
3668 } 3667 }
3669 3668
3670 { 3669 {
3671 GCTracer::Scope gc_scope(heap()->tracer(), 3670 GCTracer::Scope gc_scope(heap()->tracer(),
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
4775 SlotsBuffer* buffer = *buffer_address; 4774 SlotsBuffer* buffer = *buffer_address;
4776 while (buffer != NULL) { 4775 while (buffer != NULL) {
4777 SlotsBuffer* next_buffer = buffer->next(); 4776 SlotsBuffer* next_buffer = buffer->next();
4778 DeallocateBuffer(buffer); 4777 DeallocateBuffer(buffer);
4779 buffer = next_buffer; 4778 buffer = next_buffer;
4780 } 4779 }
4781 *buffer_address = NULL; 4780 *buffer_address = NULL;
4782 } 4781 }
4783 } // namespace internal 4782 } // namespace internal
4784 } // namespace v8 4783 } // 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