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

Unified Diff: src/parsing/preparser.cc

Issue 2541793004: [counters] Use the correct timers for background parsing (Closed)
Patch Set: remove old code Created 4 years 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
« src/parsing/parser.cc ('K') | « src/parsing/parser.cc ('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 306fb264d1c17116d189d87aefedbcc65a6a8dbf..7c488859486e67b16ab6e84a99dbf32c32011077 100644
--- a/src/parsing/preparser.cc
+++ b/src/parsing/preparser.cc
@@ -185,10 +185,10 @@ PreParser::Expression PreParser::ParseFunctionLiteral(
// Function ::
// '(' FormalParameterList? ')' '{' FunctionBody '}'
const RuntimeCallStats::CounterId counters[2][2] = {
- {&RuntimeCallStats::PreParseBackgroundWithVariableResolution,
- &RuntimeCallStats::PreParseWithVariableResolution},
{&RuntimeCallStats::PreParseBackgroundNoVariableResolution,
- &RuntimeCallStats::PreParseNoVariableResolution}};
+ &RuntimeCallStats::PreParseNoVariableResolution},
+ {&RuntimeCallStats::PreParseBackgroundWithVariableResolution,
+ &RuntimeCallStats::PreParseWithVariableResolution}};
RuntimeCallTimerScope runtime_timer(
runtime_call_stats_,
counters[track_unresolved_variables_][parsing_on_main_thread_]);
« src/parsing/parser.cc ('K') | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698