| 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 const SourceString(""), listClass.getLibrary()); | 718 const SourceString(""), listClass.getLibrary()); |
| 719 return _unnamedListConstructor = | 719 return _unnamedListConstructor = |
| 720 listClass.lookupConstructor(callConstructor); | 720 listClass.lookupConstructor(callConstructor); |
| 721 } | 721 } |
| 722 | 722 |
| 723 void scanBuiltinLibraries() { | 723 void scanBuiltinLibraries() { |
| 724 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); | 724 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); |
| 725 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); | 725 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); |
| 726 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); | 726 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); |
| 727 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); | 727 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); |
| 728 // The helper library does not use the native language extension, | |
| 729 // so we manually set the native classes this library defines. | |
| 730 // TODO(ngeoffray): Enable annotations on these classes. | |
| 731 ClassElement cls = | |
| 732 isolateHelperLibrary.find(const SourceString('_WorkerStub')); | |
| 733 cls.setNative('"Worker"'); | |
| 734 | 728 |
| 735 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); | 729 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); |
| 736 identicalFunction = coreLibrary.find(const SourceString('identical')); | 730 identicalFunction = coreLibrary.find(const SourceString('identical')); |
| 737 | 731 |
| 738 initializeSpecialClasses(); | 732 initializeSpecialClasses(); |
| 739 | 733 |
| 740 functionClass.ensureResolved(this); | 734 functionClass.ensureResolved(this); |
| 741 functionApplyMethod = | 735 functionApplyMethod = |
| 742 functionClass.lookupLocalMember(const SourceString('apply')); | 736 functionClass.lookupLocalMember(const SourceString('apply')); |
| 743 jsInvocationMirrorClass.ensureResolved(this); | 737 jsInvocationMirrorClass.ensureResolved(this); |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 | 1325 |
| 1332 void close() {} | 1326 void close() {} |
| 1333 | 1327 |
| 1334 toString() => name; | 1328 toString() => name; |
| 1335 | 1329 |
| 1336 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1330 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1337 static NullSink outputProvider(String name, String extension) { | 1331 static NullSink outputProvider(String name, String extension) { |
| 1338 return new NullSink('$name.$extension'); | 1332 return new NullSink('$name.$extension'); |
| 1339 } | 1333 } |
| 1340 } | 1334 } |
| OLD | NEW |