Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart

Issue 2936233003: Remove Compiler.mainApp and Compiler.mainFunction (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698