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 metadataCollector = new MetadataCollector( | 175 metadataCollector = new MetadataCollector( |
176 compiler.options, | 176 compiler.options, |
177 compiler.reporter, | 177 compiler.reporter, |
178 compiler.deferredLoadTask, | 178 compiler.deferredLoadTask, |
179 _emitter, | 179 _emitter, |
180 backend.constants, | 180 backend.constants, |
181 backend.typeVariableCodegenAnalysis, | 181 backend.typeVariableCodegenAnalysis, |
182 backend.mirrorsData, | 182 backend.mirrorsData, |
183 backend.rtiEncoder); | 183 backend.rtiEncoder); |
184 typeTestRegistry = new TypeTestRegistry( | 184 typeTestRegistry = new TypeTestRegistry( |
185 codegenWorldBuilder, closedWorld, compiler.elementEnvironment); | 185 codegenWorldBuilder, closedWorld, closedWorld.elementEnvironment); |
186 }); | 186 }); |
187 } | 187 } |
188 | 188 |
189 int assembleProgram(Namer namer, ClosedWorld closedWorld) { | 189 int assembleProgram(Namer namer, ClosedWorld closedWorld) { |
190 return measure(() { | 190 return measure(() { |
191 _finalizeRti(); | 191 _finalizeRti(); |
192 ProgramBuilder programBuilder = new ProgramBuilder( | 192 ProgramBuilder programBuilder = new ProgramBuilder( |
193 compiler.options, | 193 compiler.options, |
194 compiler.reporter, | 194 compiler.reporter, |
195 compiler.elementEnvironment, | 195 closedWorld.elementEnvironment, |
196 closedWorld.commonElements, | 196 closedWorld.commonElements, |
197 compiler.types, | 197 compiler.types, |
198 compiler.deferredLoadTask, | 198 compiler.deferredLoadTask, |
199 compiler.closureToClassMapper, | 199 compiler.closureToClassMapper, |
200 compiler.codegenWorldBuilder, | 200 compiler.codegenWorldBuilder, |
201 backend.nativeCodegenEnqueuer, | 201 backend.nativeCodegenEnqueuer, |
202 closedWorld.backendUsage, | 202 closedWorld.backendUsage, |
203 backend.constants, | 203 backend.constants, |
204 closedWorld.nativeData, | 204 closedWorld.nativeData, |
205 backend.rtiNeed, | 205 backend.rtiNeed, |
(...skipping 124 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 |