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

Side by Side Diff: lib/compiler/implementation/ssa/tracer.dart

Issue 10880068: - Change "static final" to "static const" in the lib/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/ssa/types.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('tracer'); 5 #library('tracer');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 #import('ssa.dart'); 8 #import('ssa.dart');
9 #import('../js_backend/js_backend.dart'); 9 #import('../js_backend/js_backend.dart');
10 #import('../leg.dart'); 10 #import('../leg.dart');
11 11
12 final bool GENERATE_SSA_TRACE = false; 12 const bool GENERATE_SSA_TRACE = false;
13 final String SSA_TRACE_FILTER = null; 13 const String SSA_TRACE_FILTER = null;
14 14
15 class HTracer extends HGraphVisitor implements Tracer { 15 class HTracer extends HGraphVisitor implements Tracer {
16 JavaScriptItemCompilationContext context; 16 JavaScriptItemCompilationContext context;
17 int indent = 0; 17 int indent = 0;
18 final RandomAccessFile output; 18 final RandomAccessFile output;
19 final bool enabled = GENERATE_SSA_TRACE; 19 final bool enabled = GENERATE_SSA_TRACE;
20 bool traceActive = false; 20 bool traceActive = false;
21 21
22 HTracer([String path = "dart.cfg"]) 22 HTracer([String path = "dart.cfg"])
23 : output = GENERATE_SSA_TRACE ? new File(path).openSync(FileMode.WRITE) 23 : output = GENERATE_SSA_TRACE ? new File(path).openSync(FileMode.WRITE)
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 String visitIs(HIs node) { 517 String visitIs(HIs node) {
518 String type = node.typeExpression.toString(); 518 String type = node.typeExpression.toString();
519 return "TypeTest: ${temporaryId(node.expression)} is $type"; 519 return "TypeTest: ${temporaryId(node.expression)} is $type";
520 } 520 }
521 521
522 String visitTypeConversion(HTypeConversion node) { 522 String visitTypeConversion(HTypeConversion node) {
523 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}"; 523 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}";
524 } 524 }
525 } 525 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/ssa/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698