Chromium Code Reviews| Index: src/zone.h |
| diff --git a/src/zone.h b/src/zone.h |
| index 45c52a257136b3d5d5406343413ef7f9d8902d09..df691555204c894eabf858c8e2df06058213e333 100644 |
| --- a/src/zone.h |
| +++ b/src/zone.h |
| @@ -58,6 +58,9 @@ class Zone { |
| // allocating new segments of memory on demand using malloc(). |
| static inline void* New(int size); |
| + template <typename T> |
| + static inline T* NewArray(int length); |
| + |
| // Delete all objects and free all memory allocated in the Zone. |
| static void DeleteAll(); |