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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart

Issue 761483002: dart2js: don't pass the supername to visitFields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js.js_emitter; 5 part of dart2js.js_emitter;
6 6
7 7
8 class OldEmitter implements Emitter { 8 class OldEmitter implements Emitter {
9 final Compiler compiler; 9 final Compiler compiler;
10 final CodeEmitterTask task; 10 final CodeEmitterTask task;
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 } 1315 }
1316 1316
1317 void emitLibraries(Iterable<LibraryElement> libraries) { 1317 void emitLibraries(Iterable<LibraryElement> libraries) {
1318 if (libraries.isEmpty) return; 1318 if (libraries.isEmpty) return;
1319 1319
1320 // TODO(karlklose): document what kinds of fields this loop adds to the 1320 // TODO(karlklose): document what kinds of fields this loop adds to the
1321 // library class builder. 1321 // library class builder.
1322 for (LibraryElement element in libraries) { 1322 for (LibraryElement element in libraries) {
1323 LibraryElement library = element; 1323 LibraryElement library = element;
1324 ClassBuilder builder = new ClassBuilder(library, namer); 1324 ClassBuilder builder = new ClassBuilder(library, namer);
1325 if (classEmitter.emitFields(library, builder, null, emitStatics: true)) { 1325 if (classEmitter.emitFields(library, builder, emitStatics: true)) {
1326 jsAst.ObjectInitializer initializer = builder.toObjectInitializer(); 1326 jsAst.ObjectInitializer initializer = builder.toObjectInitializer();
1327 compiler.dumpInfoTask.registerElementAst(builder.element, initializer); 1327 compiler.dumpInfoTask.registerElementAst(builder.element, initializer);
1328 getElementDescriptor(library).properties.addAll(initializer.properties); 1328 getElementDescriptor(library).properties.addAll(initializer.properties);
1329 } 1329 }
1330 } 1330 }
1331 } 1331 }
1332 1332
1333 void emitTypedefs() { 1333 void emitTypedefs() {
1334 OutputUnit mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit; 1334 OutputUnit mainOutputUnit = compiler.deferredLoadTask.mainOutputUnit;
1335 1335
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2013 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2014 if (element.isInstanceMember) { 2014 if (element.isInstanceMember) {
2015 cachedClassBuilders.remove(element.enclosingClass); 2015 cachedClassBuilders.remove(element.enclosingClass);
2016 2016
2017 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2017 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2018 2018
2019 } 2019 }
2020 } 2020 }
2021 } 2021 }
2022 } 2022 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698