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

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

Issue 1562253003: dart2js cps: Copy calling convention for InvokeMethodDirectly. (Closed) Base URL: git@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 | « 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/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 ce4ed20839d483ba3b3240c78432c939ac6b2763..08754637f4c187a307689a56a18f6276804c1566 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -634,7 +634,7 @@ class InvokeMethodDirectly extends InvocationPrimitive {
final List<Reference<Primitive>> arguments;
final SourceInformation sourceInformation;
- CallingConvention callingConvention = CallingConvention.Normal;
+ CallingConvention callingConvention;
Reference<Primitive> get dartReceiverReference {
return callingConvention == CallingConvention.Intercepted
@@ -656,7 +656,8 @@ class InvokeMethodDirectly extends InvocationPrimitive {
this.target,
this.selector,
List<Primitive> arguments,
- this.sourceInformation)
+ this.sourceInformation,
+ {this.callingConvention: CallingConvention.Normal})
: this.receiver = new Reference<Primitive>(receiver),
this.arguments = _referenceList(arguments);
@@ -2537,7 +2538,8 @@ class DefinitionCopyingVisitor extends Visitor<Definition> {
return new InvokeMethodDirectly(getCopy(node.receiver), node.target,
node.selector,
getList(node.arguments),
- node.sourceInformation);
+ node.sourceInformation,
+ callingConvention: node.callingConvention);
}
Definition visitInvokeConstructor(InvokeConstructor node) {
« 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