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

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

Issue 11817028: Random fixes discovered when looking through CL 11824035. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More fixes. Created 7 years, 11 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 library.addToScope(jsIndexingBehaviorInterface, this); 622 library.addToScope(jsIndexingBehaviorInterface, this);
623 } 623 }
624 } 624 }
625 } 625 }
626 626
627 void maybeEnableIsolateHelper(LibraryElement library) { 627 void maybeEnableIsolateHelper(LibraryElement library) {
628 String libraryName = library.uri.toString(); 628 String libraryName = library.uri.toString();
629 if (libraryName == 'dart:isolate' 629 if (libraryName == 'dart:isolate'
630 || libraryName == 'dart:html' 630 || libraryName == 'dart:html'
631 // TODO(floitsch): create a separate async-helper library instead of 631 // TODO(floitsch): create a separate async-helper library instead of
632 // importing the isolate-library just for async. 632 // importing the isolate-library just for TimerImpl.
633 || libraryName == 'dart:async') { 633 || libraryName == 'dart:async') {
634 importIsolateHelperLibrary(library); 634 importIsolateHelperLibrary(library);
635 } 635 }
636 } 636 }
637 637
638 void runCompiler(Uri uri) { 638 void runCompiler(Uri uri) {
639 log('compiling $uri ($BUILD_ID)'); 639 log('compiling $uri ($BUILD_ID)');
640 scanBuiltinLibraries(); 640 scanBuiltinLibraries();
641 mainApp = libraryLoader.loadLibrary(uri, null, uri); 641 mainApp = libraryLoader.loadLibrary(uri, null, uri);
642 libraries.forEach((_, library) { 642 libraries.forEach((_, library) {
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 // TODO(johnniwinther): Use [spannable] and [message] to provide better 1072 // TODO(johnniwinther): Use [spannable] and [message] to provide better
1073 // information on assertion errors. 1073 // information on assertion errors.
1074 if (condition is Function){ 1074 if (condition is Function){
1075 condition = condition(); 1075 condition = condition();
1076 } 1076 }
1077 if (spannable == null || !condition) { 1077 if (spannable == null || !condition) {
1078 throw new SpannableAssertionFailure(spannable, message); 1078 throw new SpannableAssertionFailure(spannable, message);
1079 } 1079 }
1080 return true; 1080 return true;
1081 } 1081 }
OLDNEW
« no previous file with comments | « no previous file | tests/compiler/dart2js/pretty_parameter_test.dart » ('j') | tests/compiler/dart2js/pretty_parameter_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698