Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 10a311125a9c4be301f3881ff2c728cab6349056..ee31f59db05bd6ddd413eb3c9b6f6b0847ce8d35 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -6269,11 +6269,7 @@ class HTransitionElementsKind: public HTemplateInstruction<2> { |
SetOperandAt(1, context); |
SetFlag(kUseGVN); |
SetGVNFlag(kChangesElementsKind); |
- if (original_map->has_fast_double_elements()) { |
- SetGVNFlag(kChangesElementsPointer); |
- SetGVNFlag(kChangesNewSpacePromotion); |
- } |
- if (transitioned_map->has_fast_double_elements()) { |
+ if (!IsSimpleMapChangeTransition(from_kind_, to_kind_)) { |
SetGVNFlag(kChangesElementsPointer); |
SetGVNFlag(kChangesNewSpacePromotion); |
} |