Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index fd477977c58d1694f76eb919433932eeb6acf405..baf4c5e6b4a147441a210d64709076efd808859a 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -4332,6 +4332,8 @@ void CodeStubAssembler::StoreNamedField(Node* object, FieldIndex index, |
if (store_value_as_double) { |
StoreObjectFieldNoWriteBarrier(property_storage, offset, value, |
MachineRepresentation::kFloat64); |
+ } else if (representation.IsSmi()) { |
+ StoreObjectFieldNoWriteBarrier(property_storage, offset, value); |
} else { |
StoreObjectField(property_storage, offset, value); |
} |