Return false from PagedSpace::Contains if the page from an address is not valid.

This can happen on Mac where C++ code can be in the 4-8K range.  
Review URL: http://codereview.chromium.org/3781020

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5656 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2010-10-19 09:16:57 +00:00
parent 02615e8b75
commit d4ae526526
2 changed files with 1 additions and 3 deletions

View File

@ -407,8 +407,7 @@ void MemoryAllocator::UnprotectChunkFromPage(Page* page) {
bool PagedSpace::Contains(Address addr) {
Page* p = Page::FromAddress(addr);
ASSERT(p->is_valid());
if (!p->is_valid()) return false;
return MemoryAllocator::IsPageInSpace(p, this);
}

View File

@ -2194,7 +2194,6 @@ class LargeObjectSpace : public Space {
// if such a page doesn't exist.
LargeObjectChunk* FindChunkContainingPc(Address pc);
// Iterates objects covered by dirty regions.
void IterateDirtyRegions(ObjectSlotCallback func);