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

Side by Side Diff: pkg/compiler/lib/src/dump_info.dart

Issue 1298553002: dart2js: switch to use dart2js_info/info.dart (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « DEPS ('k') | pkg/compiler/lib/src/info/info.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) 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 HtmlEscape, JsonEncoder, StringConversionSink, ChunkedConversionSink; 8 show HtmlEscape, JsonEncoder, StringConversionSink, ChunkedConversionSink;
9 9
10 import 'package:dart2js_info/info.dart';
11
10 import 'common/tasks.dart' show 12 import 'common/tasks.dart' show
11 CompilerTask; 13 CompilerTask;
12 import 'compiler.dart' show 14 import 'compiler.dart' show
13 Compiler; 15 Compiler;
14 import 'diagnostics/messages.dart' show 16 import 'diagnostics/messages.dart' show
15 MessageKind; 17 MessageKind;
16 import 'diagnostics/spannable.dart' show 18 import 'diagnostics/spannable.dart' show
17 NO_LOCATION_SPANNABLE; 19 NO_LOCATION_SPANNABLE;
18 import 'elements/elements.dart'; 20 import 'elements/elements.dart';
19 import 'elements/visitor.dart'; 21 import 'elements/visitor.dart';
20 import 'types/types.dart' show 22 import 'types/types.dart' show
21 TypeMask; 23 TypeMask;
22 import 'deferred_load.dart' show 24 import 'deferred_load.dart' show
23 OutputUnit; 25 OutputUnit;
24 import 'info/info.dart';
25 import 'js_backend/js_backend.dart' show 26 import 'js_backend/js_backend.dart' show
26 JavaScriptBackend; 27 JavaScriptBackend;
27 import 'js_emitter/full_emitter/emitter.dart' as full show 28 import 'js_emitter/full_emitter/emitter.dart' as full show
28 Emitter; 29 Emitter;
29 import 'js/js.dart' as jsAst; 30 import 'js/js.dart' as jsAst;
30 import 'universe/universe.dart' show 31 import 'universe/universe.dart' show
31 Selector, 32 Selector,
32 UniverseSelector; 33 UniverseSelector;
33 34
34 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> { 35 class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 539
539 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( 540 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(
540 new StringConversionSink.fromStringSink(buffer)); 541 new StringConversionSink.fromStringSink(buffer));
541 sink.add(result.toJson()); 542 sink.add(result.toJson());
542 compiler.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { 543 compiler.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, {
543 'text': "View the dumped .info.json file at " 544 'text': "View the dumped .info.json file at "
544 "https://dart-lang.github.io/dump-info-visualizer" 545 "https://dart-lang.github.io/dump-info-visualizer"
545 }); 546 });
546 } 547 }
547 } 548 }
OLDNEW
« no previous file with comments | « DEPS ('k') | pkg/compiler/lib/src/info/info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698