Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 04b9a46fc71a967d5608f980d050c92628fc6326..e834b24b2bf23cd5cbb0cd3264c622ff4f028c90 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -290,8 +290,7 @@ HValue* CodeStubGraphBuilder<FastCloneShallowArrayStub>::BuildCodeStub() { |
checker.Then(); |
if (mode == FastCloneShallowArrayStub::CLONE_ANY_ELEMENTS) { |
- HValue* elements = |
- AddInstruction(new(zone) HLoadElements(boilerplate, NULL)); |
+ HValue* elements = AddLoadElements(boilerplate); |
IfBuilder if_fixed_cow(this); |
if_fixed_cow.IfCompareMap(elements, factory->fixed_cow_array_map()); |
@@ -453,8 +452,7 @@ HValue* CodeStubGraphBuilder<TransitionElementsKindStub>::BuildCodeStub() { |
if_builder.Else(); |
- HInstruction* elements = |
- AddInstruction(new(zone) HLoadElements(js_array, js_array)); |
+ HInstruction* elements = AddLoadElements(js_array); |
HInstruction* elements_length = |
AddInstruction(new(zone) HFixedArrayBaseLength(elements)); |