| 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 void scanBuiltinLibraries() { | 728 void scanBuiltinLibraries() { |
| 729 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); | 729 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); |
| 730 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); | 730 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); |
| 731 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); | 731 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); |
| 732 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); | 732 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); |
| 733 // The helper library does not use the native language extension, | 733 // The helper library does not use the native language extension, |
| 734 // so we manually set the native classes this library defines. | 734 // so we manually set the native classes this library defines. |
| 735 // TODO(ngeoffray): Enable annotations on these classes. | 735 // TODO(ngeoffray): Enable annotations on these classes. |
| 736 ClassElement cls = | 736 ClassElement cls = |
| 737 isolateHelperLibrary.find(const SourceString('_WorkerStub')); | 737 isolateHelperLibrary.find(const SourceString('_WorkerStub')); |
| 738 cls.setNative('"*Worker"'); | 738 cls.setNative('"Worker"'); |
| 739 | 739 |
| 740 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); | 740 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); |
| 741 identicalFunction = coreLibrary.find(const SourceString('identical')); | 741 identicalFunction = coreLibrary.find(const SourceString('identical')); |
| 742 | 742 |
| 743 initializeSpecialClasses(); | 743 initializeSpecialClasses(); |
| 744 | 744 |
| 745 functionClass.ensureResolved(this); | 745 functionClass.ensureResolved(this); |
| 746 functionApplyMethod = | 746 functionApplyMethod = |
| 747 functionClass.lookupLocalMember(const SourceString('apply')); | 747 functionClass.lookupLocalMember(const SourceString('apply')); |
| 748 jsInvocationMirrorClass.ensureResolved(this); | 748 jsInvocationMirrorClass.ensureResolved(this); |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 | 1334 |
| 1335 void close() {} | 1335 void close() {} |
| 1336 | 1336 |
| 1337 toString() => name; | 1337 toString() => name; |
| 1338 | 1338 |
| 1339 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1339 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1340 static NullSink outputProvider(String name, String extension) { | 1340 static NullSink outputProvider(String name, String extension) { |
| 1341 return new NullSink('$name.$extension'); | 1341 return new NullSink('$name.$extension'); |
| 1342 } | 1342 } |
| 1343 } | 1343 } |
| OLD | NEW |