Chromium Code Reviews| Index: src/heap.h |
| =================================================================== |
| --- src/heap.h (revision 523) |
| +++ src/heap.h (working copy) |
| @@ -379,9 +379,13 @@ |
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| // failed. |
| // Please note this does not perform a garbage collection. |
| - static Object* AllocateFixedArray(int length, |
| - PretenureFlag pretenure = NOT_TENURED); |
| + static Object* AllocateFixedArray(int length, PretenureFlag pretenure); |
| + // As above but specialized for pretenure == NON_TENURE. |
| + static Object* AllocateFixedArray(int length); |
| + // Make a copy of src and return it. Returns |
| + // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. |
| + static Object* CopyFixedArray(FixedArray* src); |
| // Allocates a fixed array initialized with the hole values. |
| // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| @@ -814,6 +818,8 @@ |
| // (since both AllocateRaw and AllocateRawMap are inlined). |
| static inline Object* AllocateRawMap(int size_in_bytes); |
| + // Allocate unitialized fixed array (pretenure == NON_TENURE). |
|
Kasper Lund
2008/10/20 06:31:07
Why not write the comment as: Allocate uninitializ
|
| + static Object* AllocateRawFixedArray(int length); |
| // Initializes a JSObject based on its map. |
| static void InitializeJSObjectFromMap(JSObject* obj, |