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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 : this.constantSystem = constantSystem; | 99 : this.constantSystem = constantSystem; |
100 | 100 |
101 void initializeHelperClasses() {} | 101 void initializeHelperClasses() {} |
102 | 102 |
103 void enqueueAllTopLevelFunctions(LibraryElement lib, Enqueuer world) { | 103 void enqueueAllTopLevelFunctions(LibraryElement lib, Enqueuer world) { |
104 lib.forEachExport((Element e) { | 104 lib.forEachExport((Element e) { |
105 if (e.isFunction()) world.addToWorkList(e); | 105 if (e.isFunction()) world.addToWorkList(e); |
106 }); | 106 }); |
107 } | 107 } |
108 | 108 |
| 109 // TODO(karlklose): get rid of this and add a factory constructor to [List] |
| 110 // that creates an instance of JSArray to make the dependency visible in from |
| 111 // the source code. |
| 112 void addBackendRtiDependencies(World world); |
| 113 |
109 void enqueueHelpers(ResolutionEnqueuer world); | 114 void enqueueHelpers(ResolutionEnqueuer world); |
110 void codegen(CodegenWorkItem work); | 115 void codegen(CodegenWorkItem work); |
111 | 116 |
112 // The backend determines the native resolution enqueuer, with a no-op | 117 // The backend determines the native resolution enqueuer, with a no-op |
113 // default, so tools like dart2dart can ignore the native classes. | 118 // default, so tools like dart2dart can ignore the native classes. |
114 native.NativeEnqueuer nativeResolutionEnqueuer(world) { | 119 native.NativeEnqueuer nativeResolutionEnqueuer(world) { |
115 return new native.NativeEnqueuer(); | 120 return new native.NativeEnqueuer(); |
116 } | 121 } |
117 native.NativeEnqueuer nativeCodegenEnqueuer(world) { | 122 native.NativeEnqueuer nativeCodegenEnqueuer(world) { |
118 return new native.NativeEnqueuer(); | 123 return new native.NativeEnqueuer(); |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 | 1157 |
1153 void close() {} | 1158 void close() {} |
1154 | 1159 |
1155 toString() => name; | 1160 toString() => name; |
1156 | 1161 |
1157 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1162 /// Convenience method for getting an [api.CompilerOutputProvider]. |
1158 static NullSink outputProvider(String name, String extension) { | 1163 static NullSink outputProvider(String name, String extension) { |
1159 return new NullSink('$name.$extension'); | 1164 return new NullSink('$name.$extension'); |
1160 } | 1165 } |
1161 } | 1166 } |
OLD | NEW |