Commit 69b8c154 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[turbofan] Remove check in IsMoreGeneralElementsKindTransition

This check is likely unneeded.

Change-Id: Ie2b39f64312c362aabcb7168d6f1f1312b82d40c
Reviewed-on: https://chromium-review.googlesource.com/1146735
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54697}
parent 2db2d8ea
......@@ -130,11 +130,9 @@ static inline bool IsFastTransitionTarget(ElementsKind elements_kind) {
bool IsMoreGeneralElementsKindTransition(ElementsKind from_kind,
ElementsKind to_kind) {
if (IsFixedTypedArrayElementsKind(from_kind) ||
IsFixedTypedArrayElementsKind(to_kind)) {
return false;
}
if (IsFastElementsKind(from_kind) && IsFastTransitionTarget(to_kind)) {
DCHECK(!IsFixedTypedArrayElementsKind(from_kind));
DCHECK(!IsFixedTypedArrayElementsKind(to_kind));
switch (from_kind) {
case PACKED_SMI_ELEMENTS:
return to_kind != PACKED_SMI_ELEMENTS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment