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

Unified Diff: pkg/compiler/lib/src/cps_ir/loop_invariant_branch.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/loop_hierarchy.dart ('k') | pkg/compiler/lib/src/cps_ir/mutable_ssa.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/loop_invariant_branch.dart
diff --git a/pkg/compiler/lib/src/cps_ir/loop_invariant_branch.dart b/pkg/compiler/lib/src/cps_ir/loop_invariant_branch.dart
index 98df30a16ec34edd3b29dc5e580bd703a2095718..95ee597254c1d8e4849401225debd09f65b1fca4 100644
--- a/pkg/compiler/lib/src/cps_ir/loop_invariant_branch.dart
+++ b/pkg/compiler/lib/src/cps_ir/loop_invariant_branch.dart
@@ -121,7 +121,8 @@ class LoopInvariantBranchMotion extends BlockVisitor implements Pass {
Node use = ref.parent;
if (use is InvokeContinuation) {
for (Parameter loopParam in parameters) {
- use.argumentRefs.add(new Reference<Primitive>(loopParam)..parent = use);
+ use.argumentRefs
+ .add(new Reference<Primitive>(loopParam)..parent = use);
}
}
}
@@ -148,7 +149,7 @@ class LoopInvariantBranchMotion extends BlockVisitor implements Pass {
hoistedCase = trueCont;
loopCase = falseCont;
} else if (loopHierarchy.getLoopHeader(falseCont) != loop &&
- loopHierarchy.getLoopHeader(trueCont) == loop) {
+ loopHierarchy.getLoopHeader(trueCont) == loop) {
hoistedCase = falseCont;
loopCase = trueCont;
} else {
@@ -211,13 +212,12 @@ class LoopInvariantBranchMotion extends BlockVisitor implements Pass {
// branch b newTrue newFalse
//
InvokeContinuation loopEntry = loopBinding.body;
- List<Primitive> loopArgs =
- loopEntry.arguments.toList();
+ List<Primitive> loopArgs = loopEntry.arguments.toList();
CpsFragment cps = new CpsFragment();
- cps.branch(condition,
- strict: branch.isStrictCheck,
- negate: hoistedCase == falseCont)
- .invokeContinuation(hoistedCase, loopArgs);
+ cps
+ .branch(condition,
+ strict: branch.isStrictCheck, negate: hoistedCase == falseCont)
+ .invokeContinuation(hoistedCase, loopArgs);
// The continuations created in the fragment need to have their loop header
// set so the loop hierarchy remains intact
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/loop_hierarchy.dart ('k') | pkg/compiler/lib/src/cps_ir/mutable_ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698