Commit 17318a41 authored by verwaest's avatar verwaest Committed by Commit bot

[parser] add preparse tracing of arrow functions

BUG=

Review-Url: https://codereview.chromium.org/2481743003
Cr-Commit-Position: refs/heads/master@{#40807}
parent 39b86ad4
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment