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

Unified Diff: test/cctest/test-heap.cc

Issue 1683001: Put empty pages discovered during sweeping to the end of the list of pages... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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-inl.h ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
===================================================================
--- test/cctest/test-heap.cc (revision 4449)
+++ test/cctest/test-heap.cc (working copy)
@@ -830,11 +830,11 @@
}
CHECK(bytes_to_page > FixedArray::kHeaderSize);
- int* is_normal_page_ptr = &Page::FromAddress(next_page)->is_normal_page;
- Address is_normal_page_addr = reinterpret_cast<Address>(is_normal_page_ptr);
+ intptr_t* flags_ptr = &Page::FromAddress(next_page)->flags;
+ Address flags_addr = reinterpret_cast<Address>(flags_ptr);
int bytes_to_allocate =
- static_cast<int>(is_normal_page_addr - current_top) + kPointerSize;
+ static_cast<int>(flags_addr - current_top) + kPointerSize;
int n_elements = (bytes_to_allocate - FixedArray::kHeaderSize) /
kPointerSize;
@@ -843,7 +843,7 @@
Heap::AllocateFixedArray(n_elements));
int index = n_elements - 1;
- CHECK_EQ(is_normal_page_ptr,
+ CHECK_EQ(flags_ptr,
HeapObject::RawField(array, FixedArray::OffsetOfElementAt(index)));
array->set(index, Smi::FromInt(0));
// This chould have turned next page into LargeObjectPage:
« no previous file with comments | « src/spaces-inl.h ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698