Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 1922d098e03651811b961562b466f6ab7d2d4134..d2d62091f30f2eba8f21d17d21cfc7f51c5fc9b2 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -1596,7 +1596,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
? ObjectLiteral::kHasFunction |
: ObjectLiteral::kNoFlags; |
int properties_count = constant_properties->length() / 2; |
- if (expr->may_store_doubles() || expr->depth() > 1 || Serializer::enabled() || |
+ if (expr->may_store_doubles() || expr->depth() > 1 || |
+ Serializer::enabled(isolate()) || |
flags != ObjectLiteral::kFastElements || |
properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { |
__ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
@@ -1751,7 +1752,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
allocation_site_mode, |
length); |
__ CallStub(&stub); |
- } else if (expr->depth() > 1 || Serializer::enabled() || |
+ } else if (expr->depth() > 1 || Serializer::enabled(isolate()) || |
length > FastCloneShallowArrayStub::kMaximumClonedLength) { |
__ mov(ebx, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
__ push(FieldOperand(ebx, JSFunction::kLiteralsOffset)); |