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 903b672bbe8bca3c8e4a2635f28247c0f85de1c8..992ae5515540d2d125410992bf3a0e8d0a766320 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_fragment.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_fragment.dart |
@@ -118,27 +118,22 @@ class CpsFragment { |
return letPrim(new Refinement(value, type)); |
} |
- Primitive invokeBuiltin(BuiltinMethod method, |
- Primitive receiver, |
- List<Primitive> arguments, |
- {bool receiverIsNotNull: false}) { |
+ Primitive invokeBuiltin( |
+ BuiltinMethod method, Primitive receiver, List<Primitive> arguments, |
+ {bool receiverIsNotNull: false}) { |
ApplyBuiltinMethod apply = |
new ApplyBuiltinMethod(method, receiver, arguments, sourceInformation); |
return letPrim(apply); |
} |
/// Inserts an invocation and returns a primitive holding the returned value. |
- Primitive invokeMethod(Primitive receiver, |
- Selector selector, |
- TypeMask mask, |
+ Primitive invokeMethod(Primitive receiver, Selector selector, TypeMask mask, |
List<Primitive> arguments, |
- {Primitive interceptor, |
- CallingConvention callingConvention}) { |
- InvokeMethod invoke = |
- new InvokeMethod(receiver, selector, mask, arguments, |
- sourceInformation: sourceInformation, |
- callingConvention: callingConvention, |
- interceptor: interceptor); |
+ {Primitive interceptor, CallingConvention callingConvention}) { |
+ InvokeMethod invoke = new InvokeMethod(receiver, selector, mask, arguments, |
+ sourceInformation: sourceInformation, |
+ callingConvention: callingConvention, |
+ interceptor: interceptor); |
return letPrim(invoke); |
} |
@@ -168,8 +163,8 @@ class CpsFragment { |
/// Call [continueLoop] with the returned continuation to iterate the loop. |
/// |
/// The loop body becomes the new hole. |
- Continuation beginLoop([List<Parameter> loopVars, |
- List<Primitive> initialValues]) { |
+ Continuation beginLoop( |
+ [List<Parameter> loopVars, List<Primitive> initialValues]) { |
if (initialValues == null) { |
assert(loopVars == null); |
loopVars = <Parameter>[]; |
@@ -195,13 +190,14 @@ class CpsFragment { |
/// |
/// The other branch becomes the new hole. |
CpsFragment branch(Primitive condition, |
- {bool negate: false, |
- bool strict: false}) { |
+ {bool negate: false, bool strict: false}) { |
Continuation trueCont = new Continuation(<Parameter>[]); |
Continuation falseCont = new Continuation(<Parameter>[]); |
- put(new LetCont.two(trueCont, falseCont, |
- new Branch(condition, trueCont, falseCont, |
- sourceInformation, strict: strict))); |
+ put(new LetCont.two( |
+ trueCont, |
+ falseCont, |
+ new Branch(condition, trueCont, falseCont, sourceInformation, |
+ strict: strict))); |
if (negate) { |
context = trueCont; |
return new CpsFragment(sourceInformation, falseCont); |
@@ -278,11 +274,9 @@ class CpsFragment { |
/// remains open, even if [target] never returns. |
/// |
/// The [target] function is destroyed and should not be reused. |
- Primitive inlineFunction(FunctionDefinition target, |
- Primitive receiver, |
- List<Primitive> arguments, |
- {Entity hint, |
- Primitive interceptor}) { |
+ Primitive inlineFunction( |
+ FunctionDefinition target, Primitive receiver, List<Primitive> arguments, |
+ {Entity hint, Primitive interceptor}) { |
if (interceptor != null) { |
target.interceptorParameter.replaceUsesWith(interceptor); |
} |