Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index 7186bb6dac9e540e75d7c27fda50ccbf6fab9946..842a2c13b2714965508f84a2908826fd3824a46e 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -1009,7 +1009,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. |