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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 11428020: Temporarily reverting class field and method name minification. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add regression test Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 9aa445dcb59148df3a683f92d4e37a383c37ac2b..fde47f1bcf04178b2807e1ad1372f9cd38d564e1 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -702,8 +702,10 @@ class JavaScriptBackend extends Backend {
final RuntimeTypeInformation rti;
- JavaScriptBackend(Compiler compiler, bool generateSourceMap, bool disableEval)
- : namer = determineNamer(compiler),
+ JavaScriptBackend(Compiler compiler,
+ bool generateSourceMap,
+ bool disableEval)
+ : namer = new Namer(compiler),
returnInfo = new Map<Element, ReturnInfo>(),
invalidateAfterCodegen = new List<Element>(),
interceptors = new Interceptors(compiler),
@@ -721,12 +723,6 @@ class JavaScriptBackend extends Backend {
fieldTypes = new FieldTypesRegistry(this);
}
- static Namer determineNamer(Compiler compiler) {
- return compiler.enableMinification ?
- new MinifyNamer(compiler) :
- new Namer(compiler);
- }
-
bool isInterceptorClass(Element element) {
if (element == null) return false;
return element == jsStringClass

Powered by Google App Engine
This is Rietveld 408576698