Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 658cc5c2f92edeaf2fb44dc30bc3ec3aa2edd30c..9abc0b8006710981b1caf9e5bc7df3375df7cf18 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7625,6 +7625,9 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
// Parse and allocate variables. |
CompilationInfo target_info(target, zone()); |
+ // Use the same AstValueFactory for creating strings in the sub-compilation |
+ // step, but don't transfer ownership to target_info. |
+ target_info.SetAstValueFactory(top_info()->ast_value_factory(), false); |
Handle<SharedFunctionInfo> target_shared(target->shared()); |
if (!Parser::Parse(&target_info) || !Scope::Analyze(&target_info)) { |
if (target_info.isolate()->has_pending_exception()) { |