| Index: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| index 02e9ffc1bcac47cfdb989b18d80483b36683720a..386fb8e972eadfec94168e3c789aeaacd6fa0825 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| @@ -24,6 +24,7 @@ import 'startup_emitter/emitter.dart' as startup_js_emitter;
|
| import 'metadata_collector.dart' show MetadataCollector;
|
| import 'native_emitter.dart' show NativeEmitter;
|
| import 'type_test_registry.dart' show TypeTestRegistry;
|
| +import 'sorter.dart';
|
|
|
| const USE_LAZY_EMITTER = const bool.fromEnvironment("dart2js.use.lazy.emitter");
|
|
|
| @@ -72,6 +73,11 @@ class CodeEmitterTask extends CompilerTask {
|
| return _emitter;
|
| }
|
|
|
| + /// Returns the [Sorter] use for ordering elements in the generated
|
| + /// JavaScript.
|
| + // TODO(johnniwinther): Switch this based on the used entity model.
|
| + Sorter get sorter => const ElementSorter();
|
| +
|
| String get name => 'Code emitter';
|
|
|
| /// Returns true, if the emitter supports reflection.
|
| @@ -176,6 +182,7 @@ class CodeEmitterTask extends CompilerTask {
|
| _finalizeRti();
|
| ProgramBuilder programBuilder = new ProgramBuilder(
|
| compiler.options,
|
| + compiler.elementEnvironment,
|
| compiler.commonElements,
|
| compiler.types,
|
| compiler.deferredLoadTask,
|
|
|