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

Unified Diff: pkg/compiler/lib/src/cps_ir/path_based_optimizer.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/parent_visitor.dart ('k') | pkg/compiler/lib/src/cps_ir/redundant_join.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/path_based_optimizer.dart
diff --git a/pkg/compiler/lib/src/cps_ir/path_based_optimizer.dart b/pkg/compiler/lib/src/cps_ir/path_based_optimizer.dart
index 965a632dfb2657918e7e5489c8c46b5a2953c63f..933111e5b6a8e737097d7a6b26066a2202f0b599 100644
--- a/pkg/compiler/lib/src/cps_ir/path_based_optimizer.dart
+++ b/pkg/compiler/lib/src/cps_ir/path_based_optimizer.dart
@@ -59,8 +59,7 @@ import 'type_mask_system.dart';
// TODO(asgerf): Could be more precise if GVN shared expressions that are not
// in direct scope of one another, e.g. by using phis pass the shared value.
//
-class PathBasedOptimizer extends TrampolineRecursiveVisitor
- implements Pass {
+class PathBasedOptimizer extends TrampolineRecursiveVisitor implements Pass {
String get passName => 'Path-based optimizations';
// Classification of all values.
@@ -158,7 +157,7 @@ class PathBasedOptimizer extends TrampolineRecursiveVisitor
// Only self-interceptors can respond to a non-intercepted selector.
valueOf[node.receiver] = receiverValue & SELF_INTERCEPTOR;
} else if (receiverValue & ~SELF_INTERCEPTOR == 0 &&
- node.callingConvention == CallingConvention.Intercepted) {
+ node.callingConvention == CallingConvention.Intercepted) {
// This is an intercepted call whose receiver is definitely a
// self-interceptor.
// TODO(25646): If TypeMasks could represent "any self-interceptor" this
@@ -167,8 +166,8 @@ class PathBasedOptimizer extends TrampolineRecursiveVisitor
// Replace the extra receiver argument with a dummy value if the
// target definitely does not use it.
- if (typeSystem.targetIgnoresReceiverArgument(node.receiver.type,
- node.selector)) {
+ if (typeSystem.targetIgnoresReceiverArgument(
+ node.receiver.type, node.selector)) {
node.makeDummyIntercepted();
}
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/parent_visitor.dart ('k') | pkg/compiler/lib/src/cps_ir/redundant_join.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698