Reuse AstValueFactory when optimizing.
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Jun 2014 10:42:39 +0000 (10:42 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Jun 2014 10:42:39 +0000 (10:42 +0000)
commit71d07279b85dd8da3e5890f61facca4c3d0995dc
treefd3fd61fa589f11b0058adccd5fabeb4330fdf50
parentaae24ae40b0ac354694f51d483fe0bcbd8c35d4d
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
src/compiler.h
src/hydrogen.cc
src/parser.cc