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

Unified Diff: pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart

Issue 891673003: dart2js: Refactoring, documentation, and a few bugfixes in Namer class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 10 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/new_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart
index c37d5338e9d02c14656d6622e376ac0b5b295826..a4c3982416bdcd9ec0113d6b9677f81b3f975583 100644
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/emitter.dart
@@ -91,7 +91,7 @@ class Emitter implements emitterTask.Emitter {
}
js.PropertyAccess _globalPropertyAccess(Element element) {
- String name = namer.getNameX(element);
+ String name = namer.globalPropertyName(element);
js.PropertyAccess pa = new js.PropertyAccess.field(
new js.VariableUse(namer.globalObjectFor(element)),
name);
@@ -101,13 +101,13 @@ class Emitter implements emitterTask.Emitter {
@override
js.Expression isolateLazyInitializerAccess(FieldElement element) {
return js.js('#.#', [namer.globalObjectFor(element),
- namer.getLazyInitializerName(element)]);
+ namer.lazyInitializerName(element)]);
}
@override
js.Expression isolateStaticClosureAccess(FunctionElement element) {
return js.js('#.#()',
- [namer.globalObjectFor(element), namer.getStaticClosureName(element)]);
+ [namer.globalObjectFor(element), namer.staticClosureName(element)]);
}
@override

Powered by Google App Engine
This is Rietveld 408576698