| Index: tools/parser-shell.cc
|
| diff --git a/tools/parser-shell.cc b/tools/parser-shell.cc
|
| index 3e41bf94bb2a04dd03e70288cf43693983b795fc..169e1c61073ac64b9018c3101059e4872e347a37 100644
|
| --- a/tools/parser-shell.cc
|
| +++ b/tools/parser-shell.cc
|
| @@ -88,10 +88,12 @@ std::pair<v8::base::TimeDelta, v8::base::TimeDelta> RunBaselineParser(
|
| i::ScriptData* cached_data_impl = NULL;
|
| // First round of parsing (produce data to cache).
|
| {
|
| - CompilationInfoWithZone info(script);
|
| - info.MarkAsGlobal();
|
| - info.SetCachedData(&cached_data_impl,
|
| - v8::ScriptCompiler::kProduceParserCache);
|
| + Zone zone;
|
| + ParseInfo info(&zone);
|
| + info.InitializeFromScript(script);
|
| + info.set_global();
|
| + info.set_cached_data(&cached_data_impl);
|
| + info.set_compile_options(v8::ScriptCompiler::kProduceParserCache);
|
| v8::base::ElapsedTimer timer;
|
| timer.Start();
|
| // Allow lazy parsing; otherwise we won't produce cached data.
|
| @@ -104,10 +106,12 @@ std::pair<v8::base::TimeDelta, v8::base::TimeDelta> RunBaselineParser(
|
| }
|
| // Second round of parsing (consume cached data).
|
| {
|
| - CompilationInfoWithZone info(script);
|
| - info.MarkAsGlobal();
|
| - info.SetCachedData(&cached_data_impl,
|
| - v8::ScriptCompiler::kConsumeParserCache);
|
| + Zone zone;
|
| + ParseInfo info(&zone);
|
| + info.InitializeFromScript(script);
|
| + info.set_global();
|
| + info.set_cached_data(&cached_data_impl);
|
| + info.set_compile_options(v8::ScriptCompiler::kConsumeParserCache);
|
| v8::base::ElapsedTimer timer;
|
| timer.Start();
|
| // Allow lazy parsing; otherwise cached data won't help.
|
|
|