| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index a17883fd456182865a90a1b76225ff02ae826ddb..d84649d86b268cb224d28c0a0115f2638f99582b 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -565,7 +565,9 @@ Parser::Parser(CompilationInfo* info)
|
|
|
|
|
| FunctionLiteral* Parser::ParseProgram() {
|
| - HistogramTimerScope timer_scope(isolate()->counters()->parse());
|
| + // TODO(bmeurer): We temporarily need to pass allow_nesting = true here,
|
| + // see comment for HistogramTimerScope class.
|
| + HistogramTimerScope timer_scope(isolate()->counters()->parse(), true);
|
| Handle<String> source(String::cast(script_->source()));
|
| isolate()->counters()->total_parse_size()->Increment(source->length());
|
| ElapsedTimer timer;
|
|
|