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

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

Issue 1537663002: dart2js: Initial implementation of inlining. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebaseline test expectations and fix a bug (typo). 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 | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.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_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 57c9647e15f5b7164bb7aaf2e80bfb3b1c039b82..a4bd305f9f58737621f6ce1d5a4ad933d708a2a1 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.
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698