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

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

Issue 11492006: Minify methods, classes and fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Responses to Nicolas' late comments and restore missing '!' from last commit. Created 8 years 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/emitter_no_eval.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
index ba5ee7359435e9f64f2ef9f4536467d6722de677..7b824f7fb46c02e31eee0dfbe573435ff099f4a5 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart
@@ -39,7 +39,7 @@ function(cls, constructor, prototype) {
// isolateProperties themselves.
return """
function(oldIsolate) {
- var isolateProperties = oldIsolate.${namer.ISOLATE_PROPERTIES};
+ var isolateProperties = oldIsolate.${namer.isolatePropertiesName};
function Isolate() {
for (var staticName in isolateProperties) {
if (Object.prototype.hasOwnProperty.call(isolateProperties, staticName)) {
@@ -54,7 +54,7 @@ function(oldIsolate) {
}
Isolate.prototype = oldIsolate.prototype;
Isolate.prototype.constructor = Isolate;
- Isolate.${namer.ISOLATE_PROPERTIES} = isolateProperties;
+ Isolate.${namer.isolatePropertiesName} = isolateProperties;
return Isolate;
}""";
}
@@ -106,6 +106,7 @@ $lazyInitializerLogic
List<String> fields = <String>[];
visitClassFields(classElement, (Element member,
String name,
+ String accessorName,
bool needsGetter,
bool needsSetter,
bool needsCheckedSetter) {

Powered by Google App Engine
This is Rietveld 408576698