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

Side by Side Diff: dart/site/try/src/compilation.dart

Issue 344203004: Improve incremental compilation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 trydart.compilation; 5 library trydart.compilation;
6 6
7 import 'dart:html' show 7 import 'dart:html' show
8 Blob, 8 Blob,
9 Element, 9 Element,
10 ErrorEvent, 10 ErrorEvent,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 void start() { 98 void start() {
99 if (!shouldStartCompilation()) { 99 if (!shouldStartCompilation()) {
100 receivePort.close(); 100 receivePort.close();
101 return; 101 return;
102 } 102 }
103 if (current != null) current.dispose(); 103 if (current != null) current.dispose();
104 current = this; 104 current = this;
105 console.nodes.clear(); 105 console.nodes.clear();
106 var options = ['--disable-type-inference']; 106 var options = [
107 '--analyze-main',
108 '--disable-type-inference',
109 '--incremental-support',
110 '--no-source-maps',
111 ];
107 if (verboseCompiler) options.add('--verbose'); 112 if (verboseCompiler) options.add('--verbose');
108 if (minified) options.add('--minify'); 113 if (minified) options.add('--minify');
109 if (onlyAnalyze) options.add('--analyze-only'); 114 if (onlyAnalyze) options.add('--analyze-only');
110 compilerPort.send([['options', options], receivePort.sendPort]); 115 compilerPort.send([['options', options], receivePort.sendPort]);
111 console.appendHtml('<i class="icon-spinner icon-spin"></i>'); 116 console.appendHtml('<i class="icon-spinner icon-spin"></i>');
112 console.appendText(' Compiling Dart program...\n'); 117 console.appendText(' Compiling Dart program...\n');
113 outputFrame.style.display = 'none'; 118 outputFrame.style.display = 'none';
114 receivePort.listen(onMessage); 119 receivePort.listen(onMessage);
115 compilerPort.send([source, receivePort.sendPort]); 120 compilerPort.send([source, receivePort.sendPort]);
116 } 121 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 port.send(replyTo.sendPort); 292 port.send(replyTo.sendPort);
288 replyTo.listen((message) { 293 replyTo.listen((message) {
289 List list = message as List; 294 List list = message as List;
290 try { 295 try {
291 compile(list[0], list[1]); 296 compile(list[0], list[1]);
292 } catch (exception, stack) { 297 } catch (exception, stack) {
293 port.send('$exception\n$stack'); 298 port.send('$exception\n$stack');
294 } 299 }
295 }); 300 });
296 } 301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698