Index: src/builtins/builtins-typedarray-gen.cc |
diff --git a/src/builtins/builtins-typedarray-gen.cc b/src/builtins/builtins-typedarray-gen.cc |
index df69aa8089c950ebfa83200640c2c85268815533..a7c90582c4e9edafc6edbee24e0227265b85815b 100644 |
--- a/src/builtins/builtins-typedarray-gen.cc |
+++ b/src/builtins/builtins-typedarray-gen.cc |
@@ -227,7 +227,7 @@ void TypedArrayBuiltinsAssembler::DoInitialize(Node* const holder, Node* length, |
// Allocate a FixedTypedArray and set the length, base pointer and external |
// pointer. |
CSA_ASSERT(this, IsRegularHeapObjectSize(total_size.value())); |
- Node* elements = Allocate(total_size.value()); |
+ Node* elements = AllocateInNewSpace(total_size.value(), kDoubleAlignment); |
StoreMapNoWriteBarrier(elements, fixed_typed_map.value()); |
StoreObjectFieldNoWriteBarrier(elements, FixedArray::kLengthOffset, length); |