Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index df3d2c674390cc404961e710934b3e261d476d64..f4f3727dd00e00cb41b9fbba34e2949f70ddc05d 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -1002,7 +1002,16 @@ class Heap { |
// Support for partial snapshots. After calling this we have a linear |
// space to write objects in each space. |
- void ReserveSpace(int* sizes, Address* addresses); |
+ struct Chunk { |
+ uint32_t size; |
+ Address start; |
+ Address end; |
+ }; |
+ |
+ typedef List<Chunk> Reservation; |
+ |
+ // Returns false if not able to reserve. |
+ bool ReserveSpace(Reservation* reservations); |
// |
// Support for the API. |