| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 backend.rtiEncoder); | 175 backend.rtiEncoder); |
| 176 typeTestRegistry = new TypeTestRegistry(codegenWorldBuilder, closedWorld); | 176 typeTestRegistry = new TypeTestRegistry(codegenWorldBuilder, closedWorld); |
| 177 }); | 177 }); |
| 178 } | 178 } |
| 179 | 179 |
| 180 int assembleProgram(Namer namer, ClosedWorld closedWorld) { | 180 int assembleProgram(Namer namer, ClosedWorld closedWorld) { |
| 181 return measure(() { | 181 return measure(() { |
| 182 _finalizeRti(); | 182 _finalizeRti(); |
| 183 ProgramBuilder programBuilder = new ProgramBuilder( | 183 ProgramBuilder programBuilder = new ProgramBuilder( |
| 184 compiler.options, | 184 compiler.options, |
| 185 compiler.reporter, |
| 185 compiler.elementEnvironment, | 186 compiler.elementEnvironment, |
| 186 compiler.commonElements, | 187 compiler.commonElements, |
| 187 compiler.types, | 188 compiler.types, |
| 188 compiler.deferredLoadTask, | 189 compiler.deferredLoadTask, |
| 189 compiler.closureToClassMapper, | 190 compiler.closureToClassMapper, |
| 190 compiler.codegenWorldBuilder, | 191 compiler.codegenWorldBuilder, |
| 191 backend.nativeCodegenEnqueuer, | 192 backend.nativeCodegenEnqueuer, |
| 192 backend.backendUsage, | 193 backend.backendUsage, |
| 193 backend.constants, | 194 backend.constants, |
| 194 backend.nativeData, | 195 backend.nativeData, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 271 |
| 271 /// Returns the JS code for accessing the given [constant]. | 272 /// Returns the JS code for accessing the given [constant]. |
| 272 jsAst.Expression constantReference(ConstantValue constant); | 273 jsAst.Expression constantReference(ConstantValue constant); |
| 273 | 274 |
| 274 /// Returns the JS template for the given [builtin]. | 275 /// Returns the JS template for the given [builtin]. |
| 275 jsAst.Template templateForBuiltin(JsBuiltin builtin); | 276 jsAst.Template templateForBuiltin(JsBuiltin builtin); |
| 276 | 277 |
| 277 /// Returns the size of the code generated for a given output [unit]. | 278 /// Returns the size of the code generated for a given output [unit]. |
| 278 int generatedSize(OutputUnit unit); | 279 int generatedSize(OutputUnit unit); |
| 279 } | 280 } |
| OLD | NEW |