Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index c2ce5fcfafb28f830805e01d3b9fc3d5617c9daa..30ae2b44f0a811d652d58ee93154903ba493b553 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -1039,7 +1039,7 @@ bool PagedSpace::Expand() { |
intptr_t size = AreaSize(); |
if (anchor_.next_page() == &anchor_) { |
- size = Snapshot::SizeOfFirstPage(identity()); |
+ size = Snapshot::SizeOfFirstPage(heap()->isolate(), identity()); |
} |
Page* p = heap()->isolate()->memory_allocator()->AllocatePage(size, this, |