| 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).
|
| ///
|
|
|