| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Computes statistical data about a program. See `stats.dart` for more details | 5 /// Computes measurements about sends in a function. |
| 6 /// on the kind of data we collect. | 6 library compiler.src.info.send_info; |
| 7 library compiler.src.stats.stats_builder; | |
| 8 | 7 |
| 9 import 'dart:convert'; | 8 import 'dart:convert'; |
| 10 import 'package:dart2js_info/src/measurements.dart'; | 9 import 'package:dart2js_info/src/measurements.dart'; |
| 11 import 'package:dart2js_info/src/util.dart' show recursiveDiagnosticString; | 10 import 'package:dart2js_info/src/util.dart' show recursiveDiagnosticString; |
| 12 | 11 |
| 13 import '../diagnostics/messages.dart' show MessageKind; | 12 import '../diagnostics/messages.dart' show MessageKind; |
| 14 import '../compiler.dart' show Compiler; | 13 import '../compiler.dart' show Compiler; |
| 15 import '../common/tasks.dart' show CompilerTask; | 14 import '../common/tasks.dart' show CompilerTask; |
| 16 import '../dart_types.dart'; | 15 import '../dart_types.dart'; |
| 17 import '../closure.dart'; | 16 import '../closure.dart'; |
| (...skipping 2354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2372 @override | 2371 @override |
| 2373 R visitClosureFieldElement(ClosureFieldElement e, A arg) { | 2372 R visitClosureFieldElement(ClosureFieldElement e, A arg) { |
| 2374 return visitVariableElement(e, arg); | 2373 return visitVariableElement(e, arg); |
| 2375 } | 2374 } |
| 2376 } | 2375 } |
| 2377 | 2376 |
| 2378 // TODO(sigmund): get rid of debug messages. | 2377 // TODO(sigmund): get rid of debug messages. |
| 2379 _debug(String message) { | 2378 _debug(String message) { |
| 2380 print('[33mdebug:[0m $message'); | 2379 print('[33mdebug:[0m $message'); |
| 2381 } | 2380 } |
| OLD | NEW |