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

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

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/builtin_operator.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.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 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);
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/builtin_operator.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698