Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 58c628b30a201f85fb81fb7130b12c5077076ab4..0bc1f48c876ad2dd88dd260dfab525aa36291452 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -1593,7 +1593,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
: ObjectLiteral::kNoFlags; |
__ mov(r0, Operand(Smi::FromInt(flags))); |
int properties_count = constant_properties->length() / 2; |
- if (expr->depth() > 1) { |
+ if ((FLAG_track_double_fields && expr->may_store_doubles()) || |
+ expr->depth() > 1) { |
__ Push(r3, r2, r1, r0); |
__ CallRuntime(Runtime::kCreateObjectLiteral, 4); |
} else if (Serializer::enabled() || flags != ObjectLiteral::kFastElements || |