Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 5b47ec8387a9799078b4663f36f2293630ff5965..eba313d283cdd21e08f7214e1cafd35079b35562 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -6404,5 +6404,23 @@ int Heap::GetStaticVisitorIdForMap(Map* map) { |
return StaticVisitorBase::GetVisitorId(map); |
} |
+const char* AllocationSpaceName(AllocationSpace space) { |
+ switch (space) { |
+ case NEW_SPACE: |
+ return "NEW_SPACE"; |
+ case OLD_SPACE: |
+ return "OLD_SPACE"; |
+ case CODE_SPACE: |
+ return "CODE_SPACE"; |
+ case MAP_SPACE: |
+ return "MAP_SPACE"; |
+ case LO_SPACE: |
+ return "LO_SPACE"; |
+ default: |
+ UNREACHABLE(); |
+ } |
+ return NULL; |
+} |
+ |
} // namespace internal |
} // namespace v8 |