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

Side by Side Diff: lib/compiler/implementation/compiler.dart

Issue 10828416: Small changes to get the compilation size of code importing dart:html shorter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 final bool REPORT_EXCESS_RESOLUTION = false; 10 final bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 enqueuer.resolution.addToWorkList( 293 enqueuer.resolution.addToWorkList(
294 element.find(const SourceString('_currentIsolate'))); 294 element.find(const SourceString('_currentIsolate')));
295 enqueuer.resolution.addToWorkList( 295 enqueuer.resolution.addToWorkList(
296 element.find(const SourceString('_callInIsolate'))); 296 element.find(const SourceString('_callInIsolate')));
297 enqueuer.codegen.addToWorkList(element.find(START_ROOT_ISOLATE)); 297 enqueuer.codegen.addToWorkList(element.find(START_ROOT_ISOLATE));
298 } 298 }
299 299
300 bool hasIsolateSupport() => isolateLibrary !== null; 300 bool hasIsolateSupport() => isolateLibrary !== null;
301 301
302 void onLibraryLoaded(LibraryElement library, Uri uri) { 302 void onLibraryLoaded(LibraryElement library, Uri uri) {
303 if (uri.toString() == 'dart:isolate') {
304 enableIsolateSupport(library);
305 }
306 if (dynamicClass !== null) { 303 if (dynamicClass !== null) {
307 // When loading the built-in libraries, dynamicClass is null. We 304 // When loading the built-in libraries, dynamicClass is null. We
308 // take advantage of this as core and coreimpl import js_helper 305 // take advantage of this as core and coreimpl import js_helper
309 // and see Dynamic this way. 306 // and see Dynamic this way.
310 withCurrentElement(dynamicClass, () { 307 withCurrentElement(dynamicClass, () {
311 library.addToScope(dynamicClass, this); 308 library.addToScope(dynamicClass, this);
312 }); 309 });
313 } 310 }
314 } 311 }
315 312
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 final endOffset = end.charOffset + end.slowCharCount; 893 final endOffset = end.charOffset + end.slowCharCount;
897 894
898 // [begin] and [end] might be the same for the same empty token. This 895 // [begin] and [end] might be the same for the same empty token. This
899 // happens for instance when scanning '$$'. 896 // happens for instance when scanning '$$'.
900 assert(endOffset >= beginOffset); 897 assert(endOffset >= beginOffset);
901 return f(beginOffset, endOffset); 898 return f(beginOffset, endOffset);
902 } 899 }
903 900
904 String toString() => 'SourceSpan($uri, $begin, $end)'; 901 String toString() => 'SourceSpan($uri, $begin, $end)';
905 } 902 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/enqueue.dart » ('j') | lib/compiler/implementation/enqueue.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698