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

Unified Diff: pkg/compiler/lib/src/cps_ir/update_refinements.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
Index: pkg/compiler/lib/src/cps_ir/update_refinements.dart
diff --git a/pkg/compiler/lib/src/cps_ir/update_refinements.dart b/pkg/compiler/lib/src/cps_ir/update_refinements.dart
index 313f2cb2d830b4ccaa9b1b9666ec46c586cbe860..09f5d7a06d8b7e5cec7db08c31bb993eac57fef6 100644
--- a/pkg/compiler/lib/src/cps_ir/update_refinements.dart
+++ b/pkg/compiler/lib/src/cps_ir/update_refinements.dart
@@ -44,7 +44,9 @@ class UpdateRefinements extends TrampolineRecursiveVisitor implements Pass {
node.type = typeSystem.receiverTypeFor(node.selector, value.type);
} else {
// Check is no longer needed.
- node..replaceUsesWith(value)..destroy();
+ node
+ ..replaceUsesWith(value)
+ ..destroy();
LetPrim letPrim = node.parent;
letPrim.remove();
return;
@@ -62,8 +64,8 @@ class UpdateRefinements extends TrampolineRecursiveVisitor implements Pass {
visitRefinement(Refinement node) {
if (refine(node.value)) {
// Update the type if the input has changed.
- node.type = typeSystem.intersection(node.value.definition.type,
- node.refineType);
+ node.type =
+ typeSystem.intersection(node.value.definition.type, node.refineType);
}
Primitive value = node.effectiveDefinition;
Primitive old = refinementFor[value];
@@ -75,8 +77,7 @@ class UpdateRefinements extends TrampolineRecursiveVisitor implements Pass {
visitBoundsCheck(BoundsCheck node) {
super.visitBoundsCheck(node);
- if (node.hasIntegerCheck &&
- typeSystem.isDefinitelyInt(node.index.type)) {
+ if (node.hasIntegerCheck && typeSystem.isDefinitelyInt(node.index.type)) {
node.checks &= ~BoundsCheck.INTEGER;
}
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/cps_ir/use_field_initializers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698