[parser] add preparse tracing of arrow functions
BUG= Review-Url: https://codereview.chromium.org/2481743003 Cr-Commit-Position: refs/heads/master@{#40807}
This commit is contained in:
parent
39b86ad453
commit
17318a41b0
@ -4041,6 +4041,12 @@ ParserBase<Impl>::ParseArrowFunctionLiteral(
|
||||
impl()->RewriteDestructuringAssignments();
|
||||
}
|
||||
|
||||
if (FLAG_trace_preparse) {
|
||||
Scope* scope = formal_parameters.scope;
|
||||
PrintF(" [%s]: %i-%i (arrow function)\n",
|
||||
is_lazy_top_level_function ? "Preparse no-resolution" : "Full parse",
|
||||
scope->start_position(), scope->end_position());
|
||||
}
|
||||
FunctionLiteralT function_literal = factory()->NewFunctionLiteral(
|
||||
impl()->EmptyIdentifierString(), formal_parameters.scope, body,
|
||||
materialized_literal_count, expected_property_count,
|
||||
|
Loading…
Reference in New Issue
Block a user