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

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

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Updated cf. comments 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 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 c96c4325ee1c457ad9e1bdce16dd820ac697ba27..aa7f04bb81ae43b07afdbac6403e19e48af8ba85 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -22,6 +22,7 @@ import 'program_builder/program_builder.dart';
import 'startup_emitter/emitter.dart' as startup_js_emitter;
import 'metadata_collector.dart' show MetadataCollector;
+import 'model.dart';
import 'native_emitter.dart' show NativeEmitter;
import 'type_test_registry.dart' show TypeTestRegistry;
import 'sorter.dart';
@@ -42,6 +43,8 @@ class CodeEmitterTask extends CompilerTask {
Emitter _emitter;
final Compiler compiler;
+ ProgramBuilder programForTesting;
+
/// The [Sorter] use for ordering elements in the generated JavaScript.
final Sorter sorter;
@@ -194,7 +197,7 @@ class CodeEmitterTask extends CompilerTask {
compiler.reporter,
closedWorld.elementEnvironment,
closedWorld.commonElements,
- compiler.types,
+ closedWorld.dartTypes,
compiler.deferredLoadTask,
compiler.backendStrategy.closureDataLookup,
compiler.codegenWorldBuilder,
@@ -237,6 +240,8 @@ abstract class EmitterFactory {
}
abstract class Emitter {
+ Program get programForTesting;
+
/// Uses the [programBuilder] to generate a model of the program, emits
/// the program, and returns the size of the generated output.
int emitProgram(ProgramBuilder programBuilder);
@@ -290,6 +295,7 @@ abstract class Emitter {
}
abstract class EmitterBase implements Emitter {
+ Program programForTesting;
Namer get namer;
jsAst.PropertyAccess globalPropertyAccessForMember(MemberEntity element) {
« 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