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

Unified Diff: sdk/lib/_internal/compiler/implementation/dump_info.dart

Issue 486313003: Clean up dump-info and js_backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/dump_info.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dump_info.dart b/sdk/lib/_internal/compiler/implementation/dump_info.dart
index c125f21bf2b8734df0c74d8b137a29bb497418ca..af372e0e214d928ccd5a0d445da853d85539b046 100644
--- a/sdk/lib/_internal/compiler/implementation/dump_info.dart
+++ b/sdk/lib/_internal/compiler/implementation/dump_info.dart
@@ -87,8 +87,8 @@ class ElementToJsonVisitor extends ElementVisitor<Map<String, dynamic>> {
Duration compilationDuration;
Duration dumpInfoDuration;
- ElementToJsonVisitor(Compiler compiler) {
- this.compiler = compiler;
+ ElementToJsonVisitor(Compiler compiler)
sra1 2014/08/19 22:05:25 Or ElementToJsonVisitor(this.compiler)
Ty Overby (Google) 2014/08/20 17:23:50 Done.
+ :compiler = compiler {
sigurdm 2014/08/20 08:37:47 Nitpicking: space after the colon. From the style
Ty Overby (Google) 2014/08/20 17:23:50 Acknowledged.
Backend backend = compiler.backend;
sra1 2014/08/19 22:05:25 Peter suggested not doing so much work in the cons
Ty Overby (Google) 2014/08/20 17:23:50 Done.
if (backend is JavaScriptBackend) {
@@ -99,7 +99,6 @@ class ElementToJsonVisitor extends ElementVisitor<Map<String, dynamic>> {
programSize = compiler.assembledCode.length;
}
-
compilationMoment = new DateTime.now();
dart2jsVersion = compiler.hasBuildId ? compiler.buildId : null;
compilationDuration = compiler.totalCompileTime.elapsed;

Powered by Google App Engine
This is Rietveld 408576698