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

Unified Diff: pkg/compiler/lib/src/kernel/kernel_visitor.dart

Issue 2616843006: dart2js-kernel: Associate irregular calls (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/kernel_visitor.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel_visitor.dart b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
index b2ba6de949dc671cb35a39a142064674490ba709..c4ec66d10d3ee0f708f548146934ef5512206477 100644
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart
@@ -1205,7 +1205,8 @@ class KernelVisitor extends Object
NodeList arguments,
CallStructure callStructure,
_) {
- return buildCall(buildTypeLiteral(constant), callStructure, arguments);
+ return associateNode(
+ buildCall(buildTypeLiteral(constant), callStructure, arguments), node);
}
ir.Expression buildTypeLiteralSet(TypeConstantExpression constant, Node rhs) {
@@ -2234,7 +2235,8 @@ class KernelVisitor extends Object
// TODO(ahe): Support deferred load.
return new ir.InvalidExpression();
}
- return buildCall(buildStaticGet(getter), callStructure, arguments);
+ return associateNode(
+ buildCall(buildStaticGet(getter), callStructure, arguments), node);
}
@override
@@ -2588,7 +2590,8 @@ class KernelVisitor extends Object
@override
ir.MethodInvocation visitThisInvoke(
Send node, NodeList arguments, CallStructure callStructure, _) {
- return buildCall(new ir.ThisExpression(), callStructure, arguments);
+ return associateNode(
+ buildCall(new ir.ThisExpression(), callStructure, arguments), node);
}
Accessor buildThisPropertyAccessor(Name name) {
@@ -2675,7 +2678,8 @@ class KernelVisitor extends Object
NodeList arguments,
CallStructure callStructure,
_) {
- return buildCall(buildTypeVariable(element), callStructure, arguments);
+ return associateNode(
+ buildCall(buildTypeVariable(element), callStructure, arguments), node);
}
@override
@@ -2705,7 +2709,8 @@ class KernelVisitor extends Object
NodeList arguments,
CallStructure callStructure,
_) {
- return buildCall(buildTypeLiteral(constant), callStructure, arguments);
+ return associateNode(
+ buildCall(buildTypeLiteral(constant), callStructure, arguments), node);
}
@override
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698