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

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

Issue 1564713002: Copier should copy InvokeMethod calling convention (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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 | « pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('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_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index e34a4a482a30b809c332d1227216d1c7c7ebad25..540ccc6ea7f427d0b54c4bb7b7172ee80c12fc7d 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -589,16 +589,11 @@ class InvokeMethod extends InvocationPrimitive {
this.selector,
this.mask,
List<Primitive> arguments,
- [this.sourceInformation])
+ {this.sourceInformation,
+ this.callingConvention: CallingConvention.Normal})
: this.receiver = new Reference<Primitive>(receiver),
this.arguments = _referenceList(arguments);
- InvokeMethod.byReference(this.receiver,
- this.selector,
- this.mask,
- this.arguments,
- this.sourceInformation);
-
accept(Visitor visitor) => visitor.visitInvokeMethod(this);
bool get hasValue => true;
@@ -2483,7 +2478,8 @@ class DefinitionCopyingVisitor extends Visitor<Definition> {
Definition visitInvokeMethod(InvokeMethod node) {
return new InvokeMethod(getCopy(node.receiver), node.selector, node.mask,
getList(node.arguments),
- node.sourceInformation);
+ sourceInformation: node.sourceInformation,
+ callingConvention: node.callingConvention);
}
Definition visitInvokeMethodDirectly(InvokeMethodDirectly node) {
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698