Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index da415d463717bee4400ac088d80836f2cb672ecb..033a092c0d1580e963506d9114e6b60320069ebf 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -9853,6 +9853,8 @@ void HOptimizedGraphBuilder::BuildEmitInObjectProperties( |
value_instruction = double_box; |
} else if (representation.IsSmi() && value->IsUninitialized()) { |
value_instruction = graph()->GetConstant0(); |
+ // Ensure that Constant0 is stored as smi. |
+ access = access.WithRepresentation(representation); |
} else { |
value_instruction = Add<HConstant>(value); |
} |