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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_tracer.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/cps_ir_tracer.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart
index 8a5386462701497b5a4e46014c81613344fb1ac3..7b7e1e4cba2478275a1be7a2dc3cc0f387bee873 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart
@@ -52,7 +52,6 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor {
throw 'The IR tracer reached an unexpected IR instruction: $node';
}
-
int countUses(cps_ir.Definition definition) {
int count = 0;
cps_ir.Reference ref = definition.firstRef;
@@ -307,7 +306,7 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor {
visitInterceptor(cps_ir.Interceptor node) {
return 'Interceptor(${formatReference(node.inputRef)}, '
- '${node.interceptedClasses})';
+ '${node.interceptedClasses})';
}
visitGetMutable(cps_ir.GetMutable node) {
@@ -361,8 +360,8 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor {
visitForeignCode(cps_ir.ForeignCode node) {
String id = names.name(node);
String arguments = node.argumentRefs.map(formatReference).join(', ');
- printStmt(id,
- "ForeignCode ${node.type} ${node.codeTemplate.source} $arguments");
+ printStmt(
+ id, "ForeignCode ${node.type} ${node.codeTemplate.source} $arguments");
}
visitGetLength(cps_ir.GetLength node) {
@@ -391,12 +390,10 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor {
visitBoundsCheck(cps_ir.BoundsCheck node) {
String object = formatReference(node.objectRef);
- String index = node.indexRef == null
- ? 'no-index'
- : formatReference(node.indexRef);
- String length = node.lengthRef == null
- ? 'no-length'
- : formatReference(node.lengthRef);
+ String index =
+ node.indexRef == null ? 'no-index' : formatReference(node.indexRef);
+ String length =
+ node.lengthRef == null ? 'no-length' : formatReference(node.lengthRef);
return 'BoundsCheck $object $index $length ${node.checkString}';
}
@@ -416,13 +413,7 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor {
*/
class Names {
final Map<Object, String> names = {};
- final Map<String, int> counters = {
- 'r': 0,
- 'B': 0,
- 'v': 0,
- 'x': 0,
- 'c': 0
- };
+ final Map<String, int> counters = {'r': 0, 'B': 0, 'v': 0, 'x': 0, 'c': 0};
String prefix(x) {
if (x is cps_ir.Parameter) return 'r';
@@ -532,14 +523,11 @@ class BlockCollector implements cps_ir.Visitor {
unexpectedNode(node);
}
- visitThrow(cps_ir.Throw exp) {
- }
+ visitThrow(cps_ir.Throw exp) {}
- visitRethrow(cps_ir.Rethrow exp) {
- }
+ visitRethrow(cps_ir.Rethrow exp) {}
- visitUnreachable(cps_ir.Unreachable node) {
- }
+ visitUnreachable(cps_ir.Unreachable node) {}
visitGetLazyStatic(cps_ir.GetLazyStatic node) {
unexpectedNode(node);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart ('k') | pkg/compiler/lib/src/cps_ir/eagerly_load_statics.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698