Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 1e623afc81fa7eba25ecef8081b850efd70f672f..df83f040e49d9d7c237d2093332825c837d20324 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8538,7 +8538,8 @@ HValue* HOptimizedGraphBuilder::BuildArrayIndexOf(HValue* receiver, |
elements, index, static_cast<HValue*>(NULL), |
kind, ALLOW_RETURN_HOLE); |
IfBuilder if_issame(this); |
- HCompareMap* issame = if_issame.If<HCompareMap>( |
+ if_issame.IfNot<HIsSmiAndBranch>(element); |
+ HCompareMap* issame = if_issame.AndIf<HCompareMap>( |
element, isolate()->factory()->heap_number_map()); |
if_issame.And(); |
HValue* number = Add<HLoadNamedField>( |