Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 68cd89f16946a72516db5974602534b49168ceae..0c223501b71e6e3237993ba402e1a4b362421e5a 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4582,15 +4582,14 @@ void HGraphBuilder::VisitForInStatement(ForInStatement* stmt) { |
map, |
DescriptorArray::kEnumCacheBridgeCacheIndex)); |
- HInstruction* array_length = AddInstruction( |
- new(zone()) HFixedArrayBaseLength(array)); |
+ HInstruction* enum_length = AddInstruction(new(zone()) HMapEnumLength(map)); |
HInstruction* start_index = AddInstruction(new(zone()) HConstant( |
Handle<Object>(Smi::FromInt(0)), Representation::Integer32())); |
Push(map); |
Push(array); |
- Push(array_length); |
+ Push(enum_length); |
Push(start_index); |
HInstruction* index_cache = AddInstruction( |