| 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 measurements about sends in a function. | 5 /// Computes measurements about sends in a function. |
| 6 library compiler.src.info.send_info; | 6 library compiler.src.info.send_info; |
| 7 | 7 |
| 8 import 'dart:convert'; | |
| 9 | |
| 10 import 'package:dart2js_info/src/measurements.dart'; | 8 import 'package:dart2js_info/src/measurements.dart'; |
| 11 import 'package:dart2js_info/src/util.dart' show | 9 import 'package:dart2js_info/src/util.dart' show |
| 12 recursiveDiagnosticString; | 10 recursiveDiagnosticString; |
| 13 | 11 |
| 14 import '../common.dart'; | 12 import '../common.dart'; |
| 15 import '../common/tasks.dart' show | |
| 16 CompilerTask; | |
| 17 import '../compiler.dart' show | 13 import '../compiler.dart' show |
| 18 Compiler; | 14 Compiler; |
| 19 import '../dart_types.dart'; | 15 import '../dart_types.dart'; |
| 20 import '../closure.dart'; | 16 import '../closure.dart'; |
| 21 import '../elements/elements.dart'; | 17 import '../elements/elements.dart'; |
| 22 import '../elements/visitor.dart' show | 18 import '../elements/visitor.dart' show |
| 23 ElementVisitor; | 19 ElementVisitor; |
| 24 import '../resolution/operators.dart'; | 20 import '../resolution/operators.dart'; |
| 25 import '../resolution/semantic_visitor.dart'; | 21 import '../resolution/semantic_visitor.dart'; |
| 26 import '../resolution/tree_elements.dart'; | 22 import '../resolution/tree_elements.dart'; |
| (...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2384 @override | 2380 @override |
| 2385 R visitClosureFieldElement(ClosureFieldElement e, A arg) { | 2381 R visitClosureFieldElement(ClosureFieldElement e, A arg) { |
| 2386 return visitVariableElement(e, arg); | 2382 return visitVariableElement(e, arg); |
| 2387 } | 2383 } |
| 2388 } | 2384 } |
| 2389 | 2385 |
| 2390 // TODO(sigmund): get rid of debug messages. | 2386 // TODO(sigmund): get rid of debug messages. |
| 2391 _debug(String message) { | 2387 _debug(String message) { |
| 2392 print('[33mdebug:[0m $message'); | 2388 print('[33mdebug:[0m $message'); |
| 2393 } | 2389 } |
| OLD | NEW |