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

Unified Diff: src/ast/scopes.cc

Issue 2579243003: [counters] Add counter scopes for the Compiler::Analyze phases (Closed)
Patch Set: [counters] rebase Created 3 years, 11 months 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 | src/compiler.cc » ('j') | src/parsing/rewriter.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index 41f2ec320beb4d482b7b7ddb17e33d9b745535ad..aaaa6e1df1898ab978912d5a3f203e167c0178e2 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -539,6 +539,8 @@ void DeclarationScope::HoistSloppyBlockFunctions(AstNodeFactory* factory) {
}
void DeclarationScope::Analyze(ParseInfo* info, AnalyzeMode mode) {
+ RuntimeCallTimerScope runtimeTimer(info->isolate(),
+ &RuntimeCallStats::CompileScopeAnalysis);
DCHECK(info->literal() != NULL);
DeclarationScope* scope = info->literal()->scope();
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/parsing/rewriter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698