Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 745de979f91c79d3dd93242fdcf632798b70d4cf..19fa0aaddd733e9b42efc901b452417da12de847 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1554,7 +1554,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
? ObjectLiteral::kHasFunction |
: ObjectLiteral::kNoFlags; |
int properties_count = constant_properties->length() / 2; |
- if (expr->depth() > 1) { |
+ if ((FLAG_track_double_fields && expr->may_store_doubles()) || |
+ expr->depth() > 1) { |
__ movq(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
__ push(FieldOperand(rdi, JSFunction::kLiteralsOffset)); |
__ Push(Smi::FromInt(expr->literal_index())); |