Index: pkg/compiler/lib/src/cps_ir/cps_fragment.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_fragment.dart b/pkg/compiler/lib/src/cps_ir/cps_fragment.dart |
index 5d56560bed9ac0c9b8b3183ad528a8376c401374..ec294b3a1b10a7a82137393d677ebb7d4122d580 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_fragment.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_fragment.dart |
@@ -130,11 +130,14 @@ class CpsFragment { |
/// Inserts an invocation and returns a primitive holding the returned value. |
Primitive invokeMethod(Primitive receiver, |
- Selector selector, |
- TypeMask mask, |
- List<Primitive> arguments) { |
- return letPrim(new InvokeMethod(receiver, selector, mask, arguments, |
- sourceInformation)); |
+ Selector selector, |
+ TypeMask mask, |
+ List<Primitive> arguments, |
+ [CallingConvention callingConvention = CallingConvention.Normal]) { |
+ InvokeMethod invoke = |
+ new InvokeMethod(receiver, selector, mask, arguments, sourceInformation) |
+ ..callingConvention = callingConvention; |
+ return letPrim(invoke); |
} |
/// Inserts an invocation and returns a primitive holding the returned value. |