| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dump_info; | 5 library dump_info; |
| 6 | 6 |
| 7 import 'dart:convert' | 7 import 'dart:convert' |
| 8 show ChunkedConversionSink, JsonEncoder, StringConversionSink; | 8 show ChunkedConversionSink, JsonEncoder, StringConversionSink; |
| 9 | 9 |
| 10 import 'package:dart2js_info/info.dart'; | 10 import 'package:dart2js_info/info.dart'; |
| 11 | 11 |
| 12 import 'closure.dart'; | 12 import 'closure.dart'; |
| 13 import 'common/tasks.dart' show CompilerTask; | 13 import 'common/tasks.dart' show CompilerTask; |
| 14 import 'common.dart'; | 14 import 'common.dart'; |
| 15 import 'compiler.dart' show Compiler; | 15 import 'compiler.dart' show Compiler; |
| 16 import 'constants/values.dart' show ConstantValue, InterceptorConstantValue; | 16 import 'constants/values.dart' show ConstantValue, InterceptorConstantValue; |
| 17 import 'deferred_load.dart' show OutputUnit; | 17 import 'deferred_load.dart' show OutputUnit; |
| 18 import 'elements/elements.dart'; | 18 import 'elements/elements.dart'; |
| 19 import 'elements/entities.dart'; |
| 19 import 'elements/visitor.dart'; | 20 import 'elements/visitor.dart'; |
| 20 import 'js/js.dart' as jsAst; | 21 import 'js/js.dart' as jsAst; |
| 21 import 'js_backend/js_backend.dart' show JavaScriptBackend; | 22 import 'js_backend/js_backend.dart' show JavaScriptBackend; |
| 22 import 'js_emitter/full_emitter/emitter.dart' as full show Emitter; | |
| 23 import 'types/types.dart' show TypeMask; | 23 import 'types/types.dart' show TypeMask; |
| 24 import 'universe/world_builder.dart' show ReceiverConstraint; | 24 import 'universe/world_builder.dart' show ReceiverConstraint; |
| 25 import 'universe/world_impact.dart' | 25 import 'universe/world_impact.dart' |
| 26 show ImpactUseCase, WorldImpact, WorldImpactVisitorImpl; | 26 show ImpactUseCase, WorldImpact, WorldImpactVisitorImpl; |
| 27 import 'world.dart' show ClosedWorld; | 27 import 'world.dart' show ClosedWorld; |
| 28 | 28 |
| 29 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { | 29 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { |
| 30 final Compiler compiler; | 30 final Compiler compiler; |
| 31 final ClosedWorld closedWorld; | 31 final ClosedWorld closedWorld; |
| 32 | 32 |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 600 |
| 601 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( | 601 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( |
| 602 new StringConversionSink.fromStringSink(buffer)); | 602 new StringConversionSink.fromStringSink(buffer)); |
| 603 sink.add(new AllInfoJsonCodec().encode(result)); | 603 sink.add(new AllInfoJsonCodec().encode(result)); |
| 604 compiler.reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { | 604 compiler.reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { |
| 605 'text': "View the dumped .info.json file at " | 605 'text': "View the dumped .info.json file at " |
| 606 "https://dart-lang.github.io/dump-info-visualizer" | 606 "https://dart-lang.github.io/dump-info-visualizer" |
| 607 }); | 607 }); |
| 608 } | 608 } |
| 609 } | 609 } |
| OLD | NEW |