Index: sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
index 6719f8d9b32a85f9b686713d789c48d4f6c10b65..4f975e2ad6fe748395d9afbb3fe0b24cbc3b2f75 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart |
@@ -331,13 +331,12 @@ class CodeEmitterTask extends CompilerTask { |
* string encoding fields, constructor and superclass. Get |
* the superclass and the fields in the format |
* '[name/]Super;field1,field2' |
- * from the CLASS_DESCRIPTOR_PROPERTY property on the descriptor. |
+ * from the null-string property on the descriptor. |
* The 'name/' is optional and contains the name that should be used |
* when printing the runtime type string. It is used, for example, to |
* print the runtime type JSInt as 'int'. |
*/ |
- js('var classData = desc["${namer.classDescriptorProperty}"], ' |
- 'supr, name = cls, fields = classData'), |
+ js('var classData = desc[""], supr, name = cls, fields = classData'), |
optional( |
backend.hasRetainedMetadata, |
js.if_('typeof classData == "object" && ' |
@@ -829,7 +828,7 @@ class CodeEmitterTask extends CompilerTask { |
backend.generatedCode.keys.where(isStaticFunction); |
for (Element element in Elements.sortedByPosition(elements)) { |
- ClassBuilder builder = new ClassBuilder(namer); |
+ ClassBuilder builder = new ClassBuilder(); |
containerBuilder.addMember(element, builder); |
getElementDecriptor(element).properties.addAll(builder.properties); |
} |
@@ -1351,7 +1350,7 @@ mainBuffer.add(r''' |
// not see libraries that only have fields. |
if (element.isLibrary()) { |
LibraryElement library = element; |
- ClassBuilder builder = new ClassBuilder(namer); |
+ ClassBuilder builder = new ClassBuilder(); |
if (classEmitter.emitFields( |
library, builder, null, emitStatics: true)) { |
OutputUnit mainUnit = compiler.deferredLoadTask.mainOutputUnit; |
@@ -1549,7 +1548,7 @@ if (typeof $printHelperName === "function") { |
elementDescriptors.putIfAbsent( |
element, () => new Map<OutputUnit, ClassBuilder>()); |
return descriptors.putIfAbsent(outputUnit, |
- () => new ClassBuilder(namer)); |
+ () => new ClassBuilder()); |
} |
ClassBuilder getElementDecriptor(Element element) { |