Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 282fae7800bab93132c198f0c338762c2cce7b74..891c714e769181f94b4f13a9c8e71f2908f4a4f4 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6395,6 +6395,11 @@ HValue* HOptimizedGraphBuilder::HandlePolymorphicElementAccess( |
elements_kind != GetInitialFastElementsKind()) { |
possible_transitioned_maps.Add(map); |
} |
+ if (elements_kind == SLOPPY_ARGUMENTS_ELEMENTS) { |
+ HInstruction* result = BuildKeyedGeneric(access_type, object, key, val); |
+ *has_side_effects = result->HasObservableSideEffects(); |
+ return AddInstruction(result); |
+ } |
} |
// Get transition target for each map (NULL == no transition). |
for (int i = 0; i < maps->length(); ++i) { |