Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index ba41d05559b81fe3c5bb94e8a6779eb55219d28a..2eefbcb92b88d8e2eb38fa3a2e264ffd2d4c2b76 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -415,6 +415,24 @@ void FullCodeGenerator::PopulateTypeFeedbackInfo(Handle<Code> code) { |
} |
+bool FullCodeGenerator::MustCreateObjectLiteralWithRuntime( |
+ ObjectLiteral* expr) const { |
+ return expr->may_store_doubles() || expr->depth() > 1 || |
+ masm()->serializer_enabled() || |
+ expr->ComputeFlags() != ObjectLiteral::kFastElements || |
+ expr->has_elements() || |
Toon Verwaest
2015/03/30 08:42:20
Add a comment that fast-clone-shallow-object doesn
mvstanton
2015/03/30 08:59:38
Done.
|
+ expr->properties_count() > |
+ FastCloneShallowObjectStub::kMaximumClonedProperties; |
+} |
+ |
+ |
+bool FullCodeGenerator::MustCreateArrayLiteralWithRuntime( |
+ ArrayLiteral* expr) const { |
+ return expr->depth() > 1 || |
+ expr->values()->length() > JSObject::kInitialMaxFastElementArray; |
+} |
+ |
+ |
void FullCodeGenerator::Initialize() { |
InitializeAstVisitor(info_->isolate(), info_->zone()); |
// The generation of debug code must match between the snapshot code and the |