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

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

Issue 1413513002: dart2js: use AllInfoJsonCodec to write dumpinfo file (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | no next file » | 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'; 10 import 'package:dart2js_info/info.dart';
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 dart2jsVersion: compiler.hasBuildId ? compiler.buildId : null, 560 dart2jsVersion: compiler.hasBuildId ? compiler.buildId : null,
561 compilationMoment: new DateTime.now(), 561 compilationMoment: new DateTime.now(),
562 compilationDuration: compiler.totalCompileTime.elapsed, 562 compilationDuration: compiler.totalCompileTime.elapsed,
563 toJsonDuration: stopwatch.elapsedMilliseconds, 563 toJsonDuration: stopwatch.elapsedMilliseconds,
564 dumpInfoDuration: this.timing, 564 dumpInfoDuration: this.timing,
565 noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod, 565 noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod,
566 minified: compiler.enableMinification); 566 minified: compiler.enableMinification);
567 567
568 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( 568 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(
569 new StringConversionSink.fromStringSink(buffer)); 569 new StringConversionSink.fromStringSink(buffer));
570 sink.add(new JsonInfoCodec().encode(result)); 570 sink.add(new AllInfoJsonCodec().encode(result));
571 reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { 571 reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, {
572 'text': "View the dumped .info.json file at " 572 'text': "View the dumped .info.json file at "
573 "https://dart-lang.github.io/dump-info-visualizer" 573 "https://dart-lang.github.io/dump-info-visualizer"
574 }); 574 });
575 } 575 }
576 } 576 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698