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 library dart2js.js_emitter.code_emitter_task; | 5 library dart2js.js_emitter.code_emitter_task; |
6 | 6 |
7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; | 7 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; |
8 | 8 |
9 import '../common.dart'; | 9 import '../common.dart'; |
10 import '../common/tasks.dart' show CompilerTask; | 10 import '../common/tasks.dart' show CompilerTask; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 backend.rtiEncoder, | 210 backend.rtiEncoder, |
211 backend.rtiSubstitutions, | 211 backend.rtiSubstitutions, |
212 backend.jsInteropAnalysis, | 212 backend.jsInteropAnalysis, |
213 backend.oneShotInterceptorData, | 213 backend.oneShotInterceptorData, |
214 backend.customElementsCodegenAnalysis, | 214 backend.customElementsCodegenAnalysis, |
215 backend.generatedCode, | 215 backend.generatedCode, |
216 namer, | 216 namer, |
217 this, | 217 this, |
218 closedWorld, | 218 closedWorld, |
219 typeTestRegistry.rtiNeededClasses, | 219 typeTestRegistry.rtiNeededClasses, |
220 compiler.mainFunction, | 220 closedWorld.elementEnvironment.mainFunction, |
221 isMockCompilation: compiler.isMockCompilation); | 221 isMockCompilation: compiler.isMockCompilation); |
222 int size = emitter.emitProgram(programBuilder); | 222 int size = emitter.emitProgram(programBuilder); |
223 // TODO(floitsch): we shouldn't need the `neededClasses` anymore. | 223 // TODO(floitsch): we shouldn't need the `neededClasses` anymore. |
224 neededClasses = programBuilder.collector.neededClasses; | 224 neededClasses = programBuilder.collector.neededClasses; |
225 return size; | 225 return size; |
226 }); | 226 }); |
227 } | 227 } |
228 } | 228 } |
229 | 229 |
230 abstract class EmitterFactory { | 230 abstract class EmitterFactory { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 @override | 330 @override |
331 jsAst.PropertyAccess interceptorClassAccess(ClassEntity element) { | 331 jsAst.PropertyAccess interceptorClassAccess(ClassEntity element) { |
332 return globalPropertyAccessForClass(element); | 332 return globalPropertyAccessForClass(element); |
333 } | 333 } |
334 | 334 |
335 @override | 335 @override |
336 jsAst.PropertyAccess typeAccess(Entity element) { | 336 jsAst.PropertyAccess typeAccess(Entity element) { |
337 return globalPropertyAccessForType(element); | 337 return globalPropertyAccessForType(element); |
338 } | 338 } |
339 } | 339 } |
OLD | NEW |