Index: src/rewriter.cc |
=================================================================== |
--- src/rewriter.cc (revision 1942) |
+++ src/rewriter.cc (working copy) |
@@ -803,6 +803,7 @@ |
bool Rewriter::Process(FunctionLiteral* function) { |
+ HistogramTimerScope timer(&Counters::rewriting); |
Scope* scope = function->scope(); |
if (scope->is_function_scope()) return true; |
@@ -823,6 +824,7 @@ |
ZoneList<Statement*>* body = function->body(); |
if (FLAG_optimize_ast && !body->is_empty()) { |
+ HistogramTimerScope timer(&Counters::ast_optimization); |
AstOptimizer optimizer(function->name()); |
optimizer.Optimize(body); |
if (optimizer.HasStackOverflow()) { |