Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index afd066d6f19ce566ad18dd99bd4f6655770a8d62..86bf0757d457fce3cb769f4d91aaec2e7637968d 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -499,8 +499,8 @@ HValue* CodeStubGraphBuilder<TransitionElementsKindStub>::BuildCodeStub() { |
HInstruction* elements_length = |
AddInstruction(new(zone) HFixedArrayBaseLength(elements)); |
- HValue* new_elements = |
- BuildAllocateAndInitializeElements(context(), to_kind, elements_length); |
+ HValue* new_elements = BuildAllocateElementsAndInitializeElementsHeader( |
+ context(), to_kind, elements_length); |
BuildCopyElements(context(), elements, |
casted_stub()->from_kind(), new_elements, |