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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 Backend(this.compiler, | 97 Backend(this.compiler, |
98 [ConstantSystem constantSystem = DART_CONSTANT_SYSTEM]) | 98 [ConstantSystem constantSystem = DART_CONSTANT_SYSTEM]) |
99 : this.constantSystem = constantSystem; | 99 : this.constantSystem = constantSystem; |
100 | 100 |
101 void enqueueAllTopLevelFunctions(LibraryElement lib, Enqueuer world) { | 101 void enqueueAllTopLevelFunctions(LibraryElement lib, Enqueuer world) { |
102 lib.forEachExport((Element e) { | 102 lib.forEachExport((Element e) { |
103 if (e.isFunction()) world.addToWorkList(e); | 103 if (e.isFunction()) world.addToWorkList(e); |
104 }); | 104 }); |
105 } | 105 } |
106 | 106 |
107 // TODO(karlklose): get rid of this and specify the dependencies in the patch. | |
ngeoffray
2013/02/27 16:18:37
What's the patch? Please expand the comment and ex
karlklose
2013/02/28 11:37:46
Done.
| |
108 void addBackendRtiDependencies(World world); | |
109 | |
107 void enqueueHelpers(ResolutionEnqueuer world); | 110 void enqueueHelpers(ResolutionEnqueuer world); |
108 void codegen(CodegenWorkItem work); | 111 void codegen(CodegenWorkItem work); |
109 | 112 |
110 // The backend determines the native resolution enqueuer, with a no-op | 113 // The backend determines the native resolution enqueuer, with a no-op |
111 // default, so tools like dart2dart can ignore the native classes. | 114 // default, so tools like dart2dart can ignore the native classes. |
112 native.NativeEnqueuer nativeResolutionEnqueuer(world) { | 115 native.NativeEnqueuer nativeResolutionEnqueuer(world) { |
113 return new native.NativeEnqueuer(); | 116 return new native.NativeEnqueuer(); |
114 } | 117 } |
115 native.NativeEnqueuer nativeCodegenEnqueuer(world) { | 118 native.NativeEnqueuer nativeCodegenEnqueuer(world) { |
116 return new native.NativeEnqueuer(); | 119 return new native.NativeEnqueuer(); |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1148 | 1151 |
1149 void close() {} | 1152 void close() {} |
1150 | 1153 |
1151 toString() => name; | 1154 toString() => name; |
1152 | 1155 |
1153 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1156 /// Convenience method for getting an [api.CompilerOutputProvider]. |
1154 static NullSink outputProvider(String name, String extension) { | 1157 static NullSink outputProvider(String name, String extension) { |
1155 return new NullSink('$name.$extension'); | 1158 return new NullSink('$name.$extension'); |
1156 } | 1159 } |
1157 } | 1160 } |
OLD | NEW |