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

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

Issue 1285173002: dart2js cps: Rewrite more List operations into JS array operations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: receiverIsNotNull -> optional param Created 5 years, 4 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
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 0c8e0270a54fede4c31e1b0a5d250e5fc8732303..9bdb9ea15f882f2e4078ca1b9748d7841c50ec39 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_fragment.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_fragment.dart
@@ -112,6 +112,16 @@ class CpsFragment {
return letPrim(new ApplyBuiltinOperator(op, args, sourceInformation));
}
+ Primitive invokeBuiltin(BuiltinMethod method,
+ Primitive receiver,
+ List<Primitive> arguments,
+ {bool receiverIsNotNull: false}) {
+ ApplyBuiltinMethod apply =
+ new ApplyBuiltinMethod(method, receiver, arguments, sourceInformation);
+ apply.receiverIsNotNull = receiverIsNotNull;
+ return letPrim(apply);
+ }
+
/// Inserts an invocation. binds its continuation, and returns the
/// continuation parameter (i.e. the return value of the invocation).
///

Powered by Google App Engine
This is Rietveld 408576698