| Index: src/heap/heap.h
|
| diff --git a/src/heap/heap.h b/src/heap/heap.h
|
| index 4f624a3ab4b538d0b0eb128fc094516d6e03883c..2e679aba1c62e1a7131d5b0a0e7d072ad58a2da9 100644
|
| --- a/src/heap/heap.h
|
| +++ b/src/heap/heap.h
|
| @@ -660,6 +660,19 @@ class Heap {
|
| }
|
| return NULL;
|
| }
|
| + Space* space(int idx) {
|
| + switch (idx) {
|
| + case NEW_SPACE:
|
| + return new_space();
|
| + case LO_SPACE:
|
| + return lo_space();
|
| + default:
|
| + return paged_space(idx);
|
| + }
|
| + }
|
| +
|
| + // Returns name of the space.
|
| + const char* GetSpaceName(int idx);
|
|
|
| bool always_allocate() { return always_allocate_scope_depth_ != 0; }
|
| Address always_allocate_scope_depth_address() {
|
|
|