Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index 5cc2aed96bd46a0a49d0436ce5a57df3a871fe3d..ecb71314ba2c8ac3f3f4b4fa5c4b3872a78a6377 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -1319,7 +1319,7 @@ void SemiSpace::Verify() { |
void SemiSpace::AssertValidRange(Address start, Address end) { |
// Addresses belong to same semi-space |
- NewSpacePage* page = NewSpacePage::FromAddress(start); |
+ NewSpacePage* page = NewSpacePage::FromLimit(start); |
NewSpacePage* end_page = NewSpacePage::FromLimit(end); |
SemiSpace* space = page->semi_space(); |
CHECK_EQ(space, end_page->semi_space()); |