Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index f0d49a7434b0744c11a1d2263da6c946237b0a61..bf44e1fdc8669f1d6113ea9c2f5f673378629758 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5464,18 +5464,6 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic( |
STATIC_ASSERT(kMaxLoadPolymorphism == kMaxStorePolymorphism); |
if (types->length() > kMaxLoadPolymorphism) return false; |
- if (IsArrayLength()) { |
- bool is_fast = IsFastElementsKind(map()->elements_kind()); |
- for (int i = 1; i < types->length(); ++i) { |
- Handle<Map> test_map = types->at(i); |
- if (test_map->instance_type() != JS_ARRAY_TYPE) return false; |
- if (IsFastElementsKind(test_map->elements_kind()) != is_fast) { |
- return false; |
- } |
- } |
- return true; |
- } |
- |
HObjectAccess access = HObjectAccess::ForMap(); // bogus default |
if (GetJSObjectFieldAccess(&access)) { |
for (int i = 1; i < types->length(); ++i) { |