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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 compiler.elementEnvironment, |
196 compiler.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, |
206 backend.mirrorsData, | 206 backend.mirrorsData, |
(...skipping 123 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 |