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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart

Issue 1020243002: cps_ir: interceptor calling convention, operator== prologue (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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
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;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | pkg/compiler/lib/src/js_backend/codegen/glue.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698