Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index c5bf0d977708df914299099f36f197a0e5b55eca..7a88c5270da7ddc02f0564b2cfb91e1085cbe7fd 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -935,6 +935,11 @@ FunctionLiteral* Parser::ParseLazy() { |
} |
Handle<SharedFunctionInfo> shared_info = info()->shared_info(); |
+ // Lazy parsing is only done during runtime, when we're already using the |
+ // heap. So make the AstValueFactory also internalize all values when it |
+ // creates them (this is more efficient). |
+ ast_value_factory()->Internalize(isolate()); |
+ |
// Initialize parser state. |
source = String::Flatten(source); |
FunctionLiteral* result; |