Index: src/parsing/rewriter.cc |
diff --git a/src/parsing/rewriter.cc b/src/parsing/rewriter.cc |
index 0190ce25fd586e02eb79716969cfdff998232f0d..92c43ffe37c5b6797ae72da45494fdca9f8adf74 100644 |
--- a/src/parsing/rewriter.cc |
+++ b/src/parsing/rewriter.cc |
@@ -354,6 +354,8 @@ DECLARATION_NODE_LIST(DEF_VISIT) |
// Assumes code has been parsed. Mutates the AST, so the AST should not |
// continue to be used in the case of failure. |
bool Rewriter::Rewrite(ParseInfo* info) { |
+ RuntimeCallTimerScope runtimeTimer( |
+ info->isolate(), &RuntimeCallStats::CompileRewriteReturnResult); |
rmcilroy
2017/01/09 13:55:26
nit - would it work as just CompileRewriteAst or s
|
FunctionLiteral* function = info->literal(); |
DCHECK_NOT_NULL(function); |
Scope* scope = function->scope(); |