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

Unified Diff: src/parsing/preparser.cc

Issue 2507293003: [counters] Fix runtime-call-stats wrt background parsing (Closed)
Patch Set: 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 | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.cc
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
index 09761ce8874626c042b6b508239cd515c037fc1f..7f95164412209f2e6c20cda76c9528457dcf91ee 100644
--- a/src/parsing/preparser.cc
+++ b/src/parsing/preparser.cc
@@ -180,10 +180,10 @@ PreParser::Expression PreParser::ParseFunctionLiteral(
// Function ::
// '(' FormalParameterList? ')' '{' FunctionBody '}'
const RuntimeCallStats::CounterId counters[2][2] = {
- {&RuntimeCallStats::PreParseWithVariableResolution,
- &RuntimeCallStats::PreParseBackgroundWithVariableResolution},
- {&RuntimeCallStats::PreParseNoVariableResolution,
- &RuntimeCallStats::PreParseBackgroundNoVariableResolution}};
+ {&RuntimeCallStats::PreParseBackgroundWithVariableResolution,
+ &RuntimeCallStats::PreParseWithVariableResolution},
+ {&RuntimeCallStats::PreParseBackgroundNoVariableResolution,
+ &RuntimeCallStats::PreParseNoVariableResolution}};
RuntimeCallTimerScope runtime_timer(
runtime_call_stats_,
counters[track_unresolved_variables_][parsing_on_main_thread_]);
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698