Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 8d207496418e99b12f0537d9ffc0ec66a77e6205..fa3790c4a5455ea1441d250f35b08994286612fa 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -43,6 +43,12 @@ Handle<FixedArray> Factory::NewFixedArray(int size, PretenureFlag pretenure) { |
} |
+Handle<FixedArray> Factory::NewUninitializedFixedArray(int size) { |
+ ASSERT(0 <= size); |
antonm
2010/03/04 13:23:15
I am not sure we should ever allocate empty fixed
Vitaly Repeshko
2010/03/04 13:25:59
We won't. Heap::Allocate... returns a singleton in
|
+ CALL_HEAP_FUNCTION(Heap::AllocateUninitializedFixedArray(size), FixedArray); |
+} |
+ |
+ |
Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size) { |
ASSERT(0 <= size); |
CALL_HEAP_FUNCTION(Heap::AllocateFixedArrayWithHoles(size), FixedArray); |