| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |