From 71d07279b85dd8da3e5890f61facca4c3d0995dc Mon Sep 17 00:00:00 2001 From: "marja@chromium.org" Date: Mon, 16 Jun 2014 10:42:39 +0000 Subject: [PATCH] Reuse AstValueFactory when optimizing. HOptimizedGraphBuilder::TryInline creates a temporary CompilationInfo and destroys it, but we don't want the AstValueFactory to be destroyed at the same time. Reuse the upper CompilationInfo's AstValueFactory. BUG= R=yangguo@chromium.org Review URL: https://codereview.chromium.org/334173003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21851 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/compiler.cc | 14 +++++++++----- src/compiler.h | 5 ++++- src/hydrogen.cc | 3 +++ src/parser.cc | 10 +++++++--- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/compiler.cc b/src/compiler.cc index cbd9be6..a68c2f8 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -39,7 +39,8 @@ CompilationInfo::CompilationInfo(Handle