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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/nsm_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/old_emitter/nsm_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart
index a3e5a38ea5865eaf638f34018a5eb882b48e5c49..5f955f3b5ef577e4f3c40e6c8068c7a086708cc4 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/nsm_emitter.dart
@@ -260,7 +260,7 @@ class NsmEmitter extends CodeEmitterHelper {
}
shortNames.splice.apply(shortNames, calculatedShortNames);
}
- }''', {'objectClass': js.string(namer.getNameOfClass(objectClass)),
+ }''', {'objectClass': js.string(namer.className(objectClass)),
'diffEncoding': js.string('$diffEncoding')}));
} else {
// No useDiffEncoding version.
@@ -269,7 +269,7 @@ class NsmEmitter extends CodeEmitterHelper {
statements.add(js.statement(
'var objectClassObject = processedClasses.collected[#objectClass],'
' shortNames = #diffEncoding.split(",")',
- {'objectClass': js.string(namer.getNameOfClass(objectClass)),
+ {'objectClass': js.string(namer.className(objectClass)),
'diffEncoding': js.string('$diffEncoding')}));
if (!minify) {
statements.add(js.statement('var longNames = #longs.split(",")',

Powered by Google App Engine
This is Rietveld 408576698