Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 3e812d56e30a87449eaab456869c60f9bad2439a..958adcfa296e76faf37f2f2782bccabf72c8874b 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -183,11 +183,7 @@ Handle<FixedArrayBase> Factory::NewFixedDoubleArrayWithHoles( |
DCHECK(0 <= size); |
Handle<FixedArrayBase> array = NewFixedDoubleArray(size, pretenure); |
if (size > 0) { |
- Handle<FixedDoubleArray> double_array = |
- Handle<FixedDoubleArray>::cast(array); |
- for (int i = 0; i < size; ++i) { |
- double_array->set_the_hole(i); |
- } |
+ Handle<FixedDoubleArray>::cast(array)->FillWithHoles(0, size); |
} |
return array; |
} |