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

Unified Diff: pkg/compiler/lib/src/resolution/send_structure.dart

Issue 1001243003: Pass the call selector for local invocations. (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
« no previous file with comments | « no previous file | tests/compiler/dart2js/semantic_visitor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/send_structure.dart
diff --git a/pkg/compiler/lib/src/resolution/send_structure.dart b/pkg/compiler/lib/src/resolution/send_structure.dart
index 10ee61498e3ca4efd337e82567a5759981b34f0d..05f886a441542b6af8a518193e7a86cd54be0699 100644
--- a/pkg/compiler/lib/src/resolution/send_structure.dart
+++ b/pkg/compiler/lib/src/resolution/send_structure.dart
@@ -144,21 +144,27 @@ class InvokeStructure<R, A> implements SendStructure<R, A> {
node,
semantics.element,
node.argumentsNode,
- selector,
+ // TODO(johnniwinther): Store the call selector instead of the
Anders Johnsen 2015/03/13 11:46:37 Call -> Pass
+ // selector using the name of the function.
+ new Selector.callClosureFrom(selector),
arg);
case AccessKind.LOCAL_VARIABLE:
return visitor.visitLocalVariableInvoke(
node,
semantics.element,
node.argumentsNode,
- selector,
+ // TODO(johnniwinther): Store the call selector instead of the
+ // selector using the name of the variable.
+ new Selector.callClosureFrom(selector),
arg);
case AccessKind.PARAMETER:
return visitor.visitParameterInvoke(
node,
semantics.element,
node.argumentsNode,
- selector,
+ // TODO(johnniwinther): Store the call selector instead of the
+ // selector using the name of the parameter.
+ new Selector.callClosureFrom(selector),
arg);
case AccessKind.STATIC_FIELD:
return visitor.visitStaticFieldInvoke(
« no previous file with comments | « no previous file | tests/compiler/dart2js/semantic_visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698