Index: src/elements-kind.h |
diff --git a/src/elements-kind.h b/src/elements-kind.h |
index 47a146d1c11e1375d8849ce687ebb7dc74315e79..ab31a33ee74940f4af413556000686ec094478ba 100644 |
--- a/src/elements-kind.h |
+++ b/src/elements-kind.h |
@@ -199,8 +199,9 @@ ElementsKind GetNextMoreGeneralFastElementsKind(ElementsKind elements_kind, |
inline bool CanTransitionToMoreGeneralFastElementsKind( |
ElementsKind elements_kind, |
bool allow_only_packed) { |
- return elements_kind != TERMINAL_FAST_ELEMENTS_KIND && |
- (!allow_only_packed || elements_kind != FAST_ELEMENTS); |
+ return IsFastElementsKind(elements_kind) && |
+ (elements_kind != TERMINAL_FAST_ELEMENTS_KIND && |
+ (!allow_only_packed || elements_kind != FAST_ELEMENTS)); |
} |