Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 32e6605ca2fbd04d07a80a387a825c6bec346482..3b3cda0abfe666d6e652fb41049b29c22fe3b382 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -2375,9 +2375,7 @@ Handle<JSArray> ElementsAccessor::Concat(Isolate* isolate, Arguments* args, |
ElementsKind arg_kind = JSArray::cast(arg)->map()->elements_kind(); |
has_double = has_double || IsFastDoubleElementsKind(arg_kind); |
is_holey = is_holey || IsFastHoleyElementsKind(arg_kind); |
- if (IsMoreGeneralElementsKindTransition(elements_kind, arg_kind)) { |
- elements_kind = arg_kind; |
- } |
+ elements_kind = GetMoreGeneralElementsKind(elements_kind, arg_kind); |
} |
if (is_holey) { |
elements_kind = GetHoleyElementsKind(elements_kind); |