Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: src/parsing/parser-base.h

Issue 2481743003: [parser] add preparse tracing of arrow functions (Closed)
Patch Set: Move to right place Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index 524b76652858d14f569ab8d06a29b9c0ffd3269f..cebd26675fe2f229aed807d3bd4e6ff34b8ca136 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698