Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index df3f4170b1ae7fa3b0355e6f52ce18a9d73638d0..c2dbabd655da68abc82f17984092549a3d45b03e 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1653,13 +1653,11 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ li(a0, Operand(Smi::FromInt(flags))); |
int properties_count = constant_properties->length() / 2; |
if ((FLAG_track_double_fields && expr->may_store_doubles()) || |
- expr->depth() > 1) { |
- __ Push(a3, a2, a1, a0); |
- __ CallRuntime(Runtime::kCreateObjectLiteral, 4); |
- } else if (Serializer::enabled() || flags != ObjectLiteral::kFastElements || |
+ expr->depth() > 1 || Serializer::enabled() || |
+ flags != ObjectLiteral::kFastElements || |
properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { |
__ Push(a3, a2, a1, a0); |
- __ CallRuntime(Runtime::kCreateObjectLiteralShallow, 4); |
+ __ CallRuntime(Runtime::kCreateObjectLiteral, 4); |
} else { |
FastCloneShallowObjectStub stub(properties_count); |
__ CallStub(&stub); |