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

Unified Diff: src/store-buffer.cc

Issue 7029030: Use page header information to test for InNewSpace. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Addressed review comments. Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/spaces.cc ('k') | src/top.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/store-buffer.cc
diff --git a/src/store-buffer.cc b/src/store-buffer.cc
index a483dd469a6a4be196efabe7b60c8bc943689d93..da3bfd41f2e5d056cfd979a318179ba95245fa56 100644
--- a/src/store-buffer.cc
+++ b/src/store-buffer.cc
@@ -414,9 +414,12 @@ void StoreBuffer::IteratePointersToNewSpace(ObjectSlotCallback callback) {
heap_->IteratePointersToNewSpace(heap_, start, object_end, callback);
} else {
Page* page = reinterpret_cast<Page*>(chunk);
+ PagedSpace* owner = reinterpret_cast<PagedSpace*>(page->owner());
heap_->IteratePointersOnPage(
- reinterpret_cast<PagedSpace*>(page->owner()),
- &Heap::IteratePointersToNewSpace,
+ owner,
+ (owner == heap_->map_space() ?
+ &Heap::IteratePointersFromMapsToNewSpace :
+ &Heap::IteratePointersToNewSpace),
callback,
page);
}
« no previous file with comments | « src/spaces.cc ('k') | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698