Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index f4b609a7f94fd882faacfe89847d8c495cf58456..47de1e6a78b3d03962da7a193be6e743a39ad011 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -917,16 +917,12 @@ Handle<ExternalArray> Factory::NewExternalArray(int length, |
Handle<FixedTypedArrayBase> Factory::NewFixedTypedArray( |
- int length, |
- ExternalArrayType array_type, |
+ int length, ExternalArrayType array_type, bool initialize, |
PretenureFlag pretenure) { |
DCHECK(0 <= length && length <= Smi::kMaxValue); |
- CALL_HEAP_FUNCTION( |
- isolate(), |
- isolate()->heap()->AllocateFixedTypedArray(length, |
- array_type, |
- pretenure), |
- FixedTypedArrayBase); |
+ CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->AllocateFixedTypedArray( |
+ length, array_type, initialize, pretenure), |
+ FixedTypedArrayBase); |
} |
@@ -1962,7 +1958,7 @@ Handle<JSTypedArray> Factory::NewJSTypedArray(ElementsKind elements_kind, |
obj->set_buffer(*buffer); |
Handle<FixedTypedArrayBase> elements = |
isolate()->factory()->NewFixedTypedArray( |
- static_cast<int>(number_of_elements), array_type); |
+ static_cast<int>(number_of_elements), array_type, true); |
obj->set_elements(*elements); |
return obj; |
} |