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

Unified Diff: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart

Issue 2918543003: Handle static invocation (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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 e54ca9c8ae69b988249050ce52d438d9488a023b..feb3396414a7f00c1152c10a8c21c99d18c09628 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -42,6 +42,9 @@ class CodeEmitterTask extends CompilerTask {
Emitter _emitter;
final Compiler compiler;
+ /// The [Sorter] use for ordering elements in the generated JavaScript.
+ final Sorter sorter;
+
JavaScriptBackend get backend => compiler.backend;
@deprecated
@@ -54,6 +57,7 @@ class CodeEmitterTask extends CompilerTask {
CodeEmitterTask(
Compiler compiler, bool generateSourceMap, bool useStartupEmitter)
: compiler = compiler,
+ sorter = compiler.backendStrategy.sorter,
super(compiler.measurer) {
if (USE_LAZY_EMITTER) {
_emitterFactory = new lazy_js_emitter.EmitterFactory();
@@ -80,11 +84,6 @@ 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.
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/container_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698