From b696572d4ffcbaed88ad31b948228385e874becb Mon Sep 17 00:00:00 2001 From: "ishell@chromium.org" Date: Wed, 18 Feb 2015 23:58:00 +0100 Subject: [PATCH] Fixed incorrect generalization of types in Map::ReconfigureProperty() introduced in r26667. BUG=chromium:459512 LOG=N TBR=verwaest@chromium.org Review URL: https://codereview.chromium.org/936253002 Cr-Commit-Position: refs/heads/master@{#26731} --- src/objects.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects.cc b/src/objects.cc index fd35c90..1842bb6 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -2815,8 +2815,8 @@ Handle Map::ReconfigureProperty(Handle old_map, int modify_index, Handle old_field_type = GetFieldType(isolate, old_descriptors, i, old_details.location(), next_representation); - old_field_type = - GeneralizeFieldType(old_field_type, next_field_type, isolate); + next_field_type = + GeneralizeFieldType(next_field_type, old_field_type, isolate); } } else { Handle old_field_type = -- 2.7.4