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