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

Side by Side Diff: src/heap/scavenger.cc

Issue 2111133002: Version 5.2.361.32 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.2
Patch Set: Created 4 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/heap/mark-compact.cc ('k') | src/objects.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/scavenger.h" 5 #include "src/heap/scavenger.h"
6 6
7 #include "src/contexts.h" 7 #include "src/contexts.h"
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/heap/objects-visiting-inl.h" 9 #include "src/heap/objects-visiting-inl.h"
10 #include "src/heap/scavenger-inl.h" 10 #include "src/heap/scavenger-inl.h"
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 459
460 void ScavengeVisitor::VisitPointers(Object** start, Object** end) { 460 void ScavengeVisitor::VisitPointers(Object** start, Object** end) {
461 // Copy all HeapObject pointers in [start, end) 461 // Copy all HeapObject pointers in [start, end)
462 for (Object** p = start; p < end; p++) ScavengePointer(p); 462 for (Object** p = start; p < end; p++) ScavengePointer(p);
463 } 463 }
464 464
465 465
466 void ScavengeVisitor::ScavengePointer(Object** p) { 466 void ScavengeVisitor::ScavengePointer(Object** p) {
467 Object* object = *p; 467 Object* object = *p;
468 if (!heap_->InNewSpace(object)) return; 468 if (!heap_->InNewSpace(object)) return;
469
469 Scavenger::ScavengeObject(reinterpret_cast<HeapObject**>(p), 470 Scavenger::ScavengeObject(reinterpret_cast<HeapObject**>(p),
470 reinterpret_cast<HeapObject*>(object)); 471 reinterpret_cast<HeapObject*>(object));
471 } 472 }
472 473
473 } // namespace internal 474 } // namespace internal
474 } // namespace v8 475 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698