Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 55d6ff071ca6353549cc8edf866f6fde09609124..c7bdef7e9d9d3529ea152b86b0651b4628becfbe 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1,4 +1,4 @@ |
-// Copyright 2010 the V8 project authors. All rights reserved. |
+// Copyright 2011 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -58,6 +58,16 @@ Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, |
} |
+Handle<FixedArray> Factory::NewFixedDoubleArray(int size, |
+ PretenureFlag pretenure) { |
+ ASSERT(0 <= size); |
+ CALL_HEAP_FUNCTION( |
+ isolate(), |
+ isolate()->heap()->AllocateUninitializedFixedDoubleArray(size, pretenure), |
+ FixedArray); |
+} |
+ |
+ |
Handle<StringDictionary> Factory::NewStringDictionary(int at_least_space_for) { |
ASSERT(0 <= at_least_space_for); |
CALL_HEAP_FUNCTION(isolate(), |