Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 7a761a392e78c77034c553748747606ad4e21a4d..97a66790e47d1ed41a0bd102d9331bac0041b658 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5701,7 +5701,7 @@ HValue* HOptimizedGraphBuilder::HandlePolymorphicElementAccess( |
elements, isolate()->factory()->fixed_array_map(), |
zone(), top_info(), mapcompare)); |
} |
- if (map->IsJSArray()) { |
+ if (map->instance_type() == JS_ARRAY_TYPE) { |
HInstruction* length = AddLoad(object, HObjectAccess::ForArrayLength(), |
mapcompare, Representation::Smi()); |
length->set_type(HType::Smi()); |