Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
index f375244f3497cb446fab74d606a49fe8e9903144..f728efa2c4bc13bdef11fa425b47a65356f065c6 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
@@ -57,6 +57,10 @@ class IrBuilderTask extends CompilerTask { |
} |
ir.ExecutableDefinition buildNode(AstElement element) { |
+ return measure(() => _buildNode(element)); |
+ } |
+ |
+ ir.ExecutableDefinition _buildNode(AstElement element) { |
if (!canBuild(element)) return null; |
TreeElements elementsMapping = element.resolvedAst.elements; |
@@ -84,7 +88,7 @@ class IrBuilderTask extends CompilerTask { |
void buildNodes() { |
measure(() { |
Set<Element> resolved = compiler.enqueuer.resolution.resolvedElements; |
- resolved.forEach(buildNode); |
+ resolved.forEach(_buildNode); |
}); |
} |
@@ -2468,6 +2472,8 @@ class JsIrBuilderVisitor extends IrBuilderVisitor { |
} |
ir.FunctionDefinition buildFunction(FunctionElement element) { |
+ Selector selector = new Selector.fromElement(element); |
Kevin Millikin (Google)
2015/03/26 15:14:16
Inadvertent change? selector is only used in the
|
+ //if (glue.isInterceptedSelector(selector)) { |
assert(invariant(element, element.isImplementation)); |
ast.FunctionExpression node = element.node; |