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

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

Issue 1510193003: dart2js: Process arguments to direct invocations as if the target is known. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 032272ff4b65e6a911502aa962b28a213be52868..dfcb86fcdbc38e131c2a6a309e2c3e971934c909 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
@@ -993,10 +993,8 @@ abstract class IrBuilderVisitor extends ast.Visitor<ir.Primitive>
op.BinaryOperator operator,
ast.Node argument) {
List<ir.Primitive> arguments = <ir.Primitive>[visit(argument)];
- CallStructure callStructure =
- normalizeDynamicArguments(CallStructure.ONE_ARG, arguments);
- return irBuilder.buildSuperMethodInvocation(
- function, callStructure, arguments);
+ return irBuilder.buildSuperMethodInvocation(function,
+ CallStructure.ONE_ARG, arguments);
}
@override
@@ -1318,8 +1316,8 @@ abstract class IrBuilderVisitor extends ast.Visitor<ir.Primitive>
CallStructure callStructure,
_) {
List<ir.Primitive> arguments = <ir.Primitive>[];
- callStructure =
- translateDynamicArguments(argumentsNode, callStructure, arguments);
+ callStructure = translateStaticArguments(argumentsNode, method,
+ callStructure, arguments);
return irBuilder.buildSuperMethodInvocation(
method,
callStructure,
« no previous file with comments | « no previous file | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698