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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10915104: Move namer into javascript backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index 690e7dbb87364e393da043e41b22430f405c9027..745eea04b6f5344514e40813f32a998ebd1dda84 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -84,7 +84,6 @@ class Compiler implements DiagnosticListener {
int nextFreeClassId = 0;
World world;
String assembledCode;
- Namer namer;
Types types;
final bool enableMinification;
@@ -192,7 +191,6 @@ class Compiler implements DiagnosticListener {
world = new World(),
progress = new Stopwatch() {
progress.start();
- namer = new Namer(this);
scanner = new ScannerTask(this);
dietParser = new DietParserTask(this);
parser = new ParserTask(this);
@@ -212,6 +210,10 @@ class Compiler implements DiagnosticListener {
tasks.addAll(backend.tasks);
}
+ // TODO(floitsch): remove once the compile-time constant handler doesn't
+ // depend on it anymore.
+ js_backend.Namer get namer => (backend as js_backend.JavaScriptBackend).namer;
kasperl 2012/09/06 07:47:53 This seems hacky. Looking forward to getting rid o
+
Universe get resolverWorld => enqueuer.resolution.universe;
Universe get codegenWorld => enqueuer.codegen.universe;

Powered by Google App Engine
This is Rietveld 408576698