Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 84200cad1ac869fb4612b26ff44f7c7720338401..e8ec19df9aea113fa9363799978b3d1a1ec0cd5d 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -177,6 +177,14 @@ Handle<FixedArrayBase> Factory::NewFixedDoubleArrayWithHoles( |
return array; |
} |
+Handle<FrameArray> Factory::NewFrameArray(int number_of_frames, |
+ PretenureFlag pretenure) { |
+ DCHECK_LE(0, number_of_frames); |
+ Handle<FixedArray> result = |
+ NewFixedArrayWithHoles(FrameArray::LengthFor(number_of_frames)); |
+ result->set(FrameArray::kFrameCountIndex, Smi::FromInt(0)); |
+ return Handle<FrameArray>::cast(result); |
+} |
Handle<OrderedHashSet> Factory::NewOrderedHashSet() { |
return OrderedHashSet::Allocate(isolate(), OrderedHashSet::kMinCapacity); |