Produce cached data only for scripts which compile without errors.
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 6 May 2014 11:22:54 +0000 (11:22 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 6 May 2014 11:22:54 +0000 (11:22 +0000)
commit43f9c6784218d90435158a9d011e2e1157edfa02
tree7058fe47192edbd834b9cc4cb87b2f22f26d4e05
parent0070272321d380d363c03024dbcfe29ad4d43a82
Produce cached data only for scripts which compile without errors.

ScriptCompiler::CompileUnbound handles cached data only when there was no
compilation error, so, if we produce the data for erroneous scripts, the
ScriptData object is leaked.

In addition, producing cached data for erroneous scripts makes little sense.

R=ulan@chromium.org
BUG=370327
LOG=N

Review URL: https://codereview.chromium.org/266423003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21164 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc