Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 0a8b9d5767db3f641979ea3b41aacfcf92feca73..4ec34f98075117eba6228fb4f78ba2ffa06921f3 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -273,9 +273,8 @@ HValue* CodeStubGraphBuilder<TransitionElementsKindStub>::BuildCodeStub() { |
AddInstruction(new(zone) HTrapAllocationMemento(js_array)); |
HInstruction* array_length = |
- AddInstruction(new(zone) HJSArrayLength(js_array, |
- js_array, |
- HType::Smi())); |
+ AddInstruction(HLoadNamedField::NewArrayLength( |
+ zone, js_array, js_array, HType::Smi())); |
ElementsKind to_kind = casted_stub()->to_kind(); |
BuildNewSpaceArrayCheck(array_length, to_kind); |