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

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

Issue 1198293002: dart2js: Use an abstract Name class for names in the generated JavaScript ast. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix new emitter. Created 5 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 59fe76ae18539aa14655ccfd8bffa0443f91e259..1513dc39575afe31a5f4fb0bac1bd697b57df5a6 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -4,7 +4,7 @@
part of dart2js.js_emitter;
-const USE_NEW_EMITTER = const bool.fromEnvironment("dart2js.use.new.emitter");
+const USE_NEW_EMITTER = true; //const bool.fromEnvironment("dart2js.use.new.emitter");
floitsch 2015/06/22 17:43:44 debug.
herhut 2015/06/23 13:26:31 Done.
/**
* Generates the code for all used classes in the program. Static fields (even
@@ -216,8 +216,8 @@ class CodeEmitterTask extends CompilerTask {
backend.retainMetadataOf(cls);
oldEmitter.classEmitter.visitFields(cls, false,
(Element member,
- String name,
- String accessorName,
+ jsAst.Name name,
+ jsAst.Name accessorName,
bool needsGetter,
bool needsSetter,
bool needsCheckedSetter) {

Powered by Google App Engine
This is Rietveld 408576698