| 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; |
| 11 import '../compiler.dart' show Compiler; | 11 import '../compiler.dart' show Compiler; |
| 12 import '../constants/values.dart'; | 12 import '../constants/values.dart'; |
| 13 import '../deferred_load.dart' show OutputUnit; | 13 import '../deferred_load.dart' show OutputUnit; |
| 14 import '../elements/elements.dart' show Entity; | |
| 15 import '../elements/entities.dart'; | 14 import '../elements/entities.dart'; |
| 16 import '../js/js.dart' as jsAst; | 15 import '../js/js.dart' as jsAst; |
| 17 import '../js_backend/js_backend.dart' show JavaScriptBackend, Namer; | 16 import '../js_backend/js_backend.dart' show JavaScriptBackend, Namer; |
| 18 import '../world.dart' show ClosedWorld; | 17 import '../world.dart' show ClosedWorld; |
| 19 import 'full_emitter/emitter.dart' as full_js_emitter; | 18 import 'full_emitter/emitter.dart' as full_js_emitter; |
| 20 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; | 19 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; |
| 21 import 'program_builder/program_builder.dart'; | 20 import 'program_builder/program_builder.dart'; |
| 22 import 'startup_emitter/emitter.dart' as startup_js_emitter; | 21 import 'startup_emitter/emitter.dart' as startup_js_emitter; |
| 23 | 22 |
| 24 import 'metadata_collector.dart' show MetadataCollector; | 23 import 'metadata_collector.dart' show MetadataCollector; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 jsAst.Expression constantReference(ConstantValue constant); | 246 jsAst.Expression constantReference(ConstantValue constant); |
| 248 | 247 |
| 249 /// Returns the JS template for the given [builtin]. | 248 /// Returns the JS template for the given [builtin]. |
| 250 jsAst.Template templateForBuiltin(JsBuiltin builtin); | 249 jsAst.Template templateForBuiltin(JsBuiltin builtin); |
| 251 | 250 |
| 252 /// Returns the size of the code generated for a given output [unit]. | 251 /// Returns the size of the code generated for a given output [unit]. |
| 253 int generatedSize(OutputUnit unit); | 252 int generatedSize(OutputUnit unit); |
| 254 | 253 |
| 255 void invalidateCaches(); | 254 void invalidateCaches(); |
| 256 } | 255 } |
| OLD | NEW |