OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library dart2js.enqueue; | 5 library dart2js.enqueue; |
6 | 6 |
7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
8 | 8 |
9 import 'common/codegen.dart' show CodegenWorkItem; | 9 import 'common/codegen.dart' show CodegenWorkItem; |
10 import 'common/names.dart' show Identifiers; | 10 import 'common/names.dart' show Identifiers; |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 superclass.isClosure || | 302 superclass.isClosure || |
303 compiler.enqueuer.resolution.isClassProcessed(superclass), | 303 compiler.enqueuer.resolution.isClassProcessed(superclass), |
304 message: "Class $superclass has not been " | 304 message: "Class $superclass has not been " |
305 "processed in resolution.")); | 305 "processed in resolution.")); |
306 }*/ | 306 }*/ |
307 | 307 |
308 _processedClasses.add(superclass); | 308 _processedClasses.add(superclass); |
309 recentClasses.add(superclass); | 309 recentClasses.add(superclass); |
310 superclass.ensureResolved(resolution); | 310 superclass.ensureResolved(resolution); |
311 superclass.implementation.forEachMember(processInstantiatedClassMember); | 311 superclass.implementation.forEachMember(processInstantiatedClassMember); |
312 if (isResolutionQueue && !superclass.isSynthesized) { | 312 if (isResolutionQueue && |
| 313 !compiler.serialization.isDeserialized(superclass)) { |
313 compiler.resolver.checkClass(superclass); | 314 compiler.resolver.checkClass(superclass); |
314 } | 315 } |
315 // We only tell the backend once that [superclass] was instantiated, so | 316 // We only tell the backend once that [superclass] was instantiated, so |
316 // any additional dependencies must be treated as global | 317 // any additional dependencies must be treated as global |
317 // dependencies. | 318 // dependencies. |
318 compiler.backend.registerInstantiatedClass( | 319 compiler.backend.registerInstantiatedClass( |
319 superclass, this, compiler.globalDependencies); | 320 superclass, this, compiler.globalDependencies); |
320 } | 321 } |
321 | 322 |
322 ClassElement superclass = cls; | 323 ClassElement superclass = cls; |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 @override | 1037 @override |
1037 void visitStaticUse(StaticUse staticUse) { | 1038 void visitStaticUse(StaticUse staticUse) { |
1038 enqueuer.registerStaticUse(staticUse); | 1039 enqueuer.registerStaticUse(staticUse); |
1039 } | 1040 } |
1040 | 1041 |
1041 @override | 1042 @override |
1042 void visitTypeUse(TypeUse typeUse) { | 1043 void visitTypeUse(TypeUse typeUse) { |
1043 enqueuer.registerTypeUse(typeUse); | 1044 enqueuer.registerTypeUse(typeUse); |
1044 } | 1045 } |
1045 } | 1046 } |
OLD | NEW |