| 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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 753 |
| 754 Element _unnamedListConstructor; | 754 Element _unnamedListConstructor; |
| 755 Element get unnamedListConstructor { | 755 Element get unnamedListConstructor { |
| 756 if (_unnamedListConstructor != null) return _unnamedListConstructor; | 756 if (_unnamedListConstructor != null) return _unnamedListConstructor; |
| 757 Selector callConstructor = new Selector.callConstructor( | 757 Selector callConstructor = new Selector.callConstructor( |
| 758 const SourceString(""), listClass.getLibrary()); | 758 const SourceString(""), listClass.getLibrary()); |
| 759 return _unnamedListConstructor = | 759 return _unnamedListConstructor = |
| 760 listClass.lookupConstructor(callConstructor); | 760 listClass.lookupConstructor(callConstructor); |
| 761 } | 761 } |
| 762 | 762 |
| 763 Element _filledListConstructor; |
| 764 Element get filledListConstructor { |
| 765 if (_filledListConstructor != null) return _filledListConstructor; |
| 766 Selector callConstructor = new Selector.callConstructor( |
| 767 const SourceString("filled"), listClass.getLibrary()); |
| 768 return _filledListConstructor = |
| 769 listClass.lookupConstructor(callConstructor); |
| 770 } |
| 771 |
| 763 void scanBuiltinLibraries() { | 772 void scanBuiltinLibraries() { |
| 764 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); | 773 jsHelperLibrary = scanBuiltinLibrary('_js_helper'); |
| 765 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); | 774 interceptorsLibrary = scanBuiltinLibrary('_interceptors'); |
| 766 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); | 775 foreignLibrary = scanBuiltinLibrary('_foreign_helper'); |
| 767 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); | 776 isolateHelperLibrary = scanBuiltinLibrary('_isolate_helper'); |
| 768 | 777 |
| 769 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); | 778 assertMethod = jsHelperLibrary.find(const SourceString('assertHelper')); |
| 770 identicalFunction = coreLibrary.find(const SourceString('identical')); | 779 identicalFunction = coreLibrary.find(const SourceString('identical')); |
| 771 | 780 |
| 772 initializeSpecialClasses(); | 781 initializeSpecialClasses(); |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1405 | 1414 |
| 1406 void close() {} | 1415 void close() {} |
| 1407 | 1416 |
| 1408 toString() => name; | 1417 toString() => name; |
| 1409 | 1418 |
| 1410 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1419 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1411 static NullSink outputProvider(String name, String extension) { | 1420 static NullSink outputProvider(String name, String extension) { |
| 1412 return new NullSink('$name.$extension'); | 1421 return new NullSink('$name.$extension'); |
| 1413 } | 1422 } |
| 1414 } | 1423 } |
| OLD | NEW |