| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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.js_model.strategy; | 5 library dart2js.js_model.strategy; |
| 6 | 6 |
| 7 import '../closure.dart' show ClosureConversionTask; | 7 import '../closure.dart' show ClosureConversionTask; |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../common/tasks.dart'; | 9 import '../common/tasks.dart'; |
| 10 import '../common_elements.dart'; | 10 import '../common_elements.dart'; |
| 11 import '../compiler.dart'; | 11 import '../compiler.dart'; |
| 12 import '../constants/constant_system.dart'; | 12 import '../constants/constant_system.dart'; |
| 13 import '../elements/elements.dart' show ClassElement, TypedefElement; | 13 import '../elements/elements.dart' show ClassElement; |
| 14 import '../elements/entities.dart'; | 14 import '../elements/entities.dart'; |
| 15 import '../elements/types.dart'; | 15 import '../elements/types.dart'; |
| 16 import '../enqueue.dart'; | 16 import '../enqueue.dart'; |
| 17 import '../io/source_information.dart'; | 17 import '../io/source_information.dart'; |
| 18 import '../js_emitter/sorter.dart'; | 18 import '../js_emitter/sorter.dart'; |
| 19 import '../js/js_source_mapping.dart'; | 19 import '../js/js_source_mapping.dart'; |
| 20 import '../js_backend/backend.dart'; | 20 import '../js_backend/backend.dart'; |
| 21 import '../js_backend/backend_usage.dart'; | 21 import '../js_backend/backend_usage.dart'; |
| 22 import '../js_backend/constant_system_javascript.dart'; | 22 import '../js_backend/constant_system_javascript.dart'; |
| 23 import '../js_backend/interceptor_data.dart'; | 23 import '../js_backend/interceptor_data.dart'; |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 rtiNeed: rtiNeed, | 290 rtiNeed: rtiNeed, |
| 291 classHierarchyNodes: classHierarchyNodes, | 291 classHierarchyNodes: classHierarchyNodes, |
| 292 classSets: classSets, | 292 classSets: classSets, |
| 293 implementedClasses: implementedClasses, | 293 implementedClasses: implementedClasses, |
| 294 liveNativeClasses: liveNativeClasses, | 294 liveNativeClasses: liveNativeClasses, |
| 295 liveInstanceMembers: liveInstanceMembers, | 295 liveInstanceMembers: liveInstanceMembers, |
| 296 assignedInstanceMembers: assignedInstanceMembers, | 296 assignedInstanceMembers: assignedInstanceMembers, |
| 297 mixinUses: mixinUses, | 297 mixinUses: mixinUses, |
| 298 typesImplementedBySubclasses: typesImplementedBySubclasses, | 298 typesImplementedBySubclasses: typesImplementedBySubclasses, |
| 299 // TODO(johnniwinther): Support this: | 299 // TODO(johnniwinther): Support this: |
| 300 allTypedefs: new ImmutableEmptySet<TypedefElement>()); | 300 allTypedefs: new ImmutableEmptySet<TypedefEntity>()); |
| 301 } | 301 } |
| 302 | 302 |
| 303 @override | 303 @override |
| 304 Sorter get sorter { | 304 Sorter get sorter { |
| 305 return _sorter ??= new KernelSorter(elementMap); | 305 return _sorter ??= new KernelSorter(elementMap); |
| 306 } | 306 } |
| 307 | 307 |
| 308 @override | 308 @override |
| 309 ClosureConversionTask get closureDataLookup => _closureDataLookup; | 309 ClosureConversionTask get closureDataLookup => _closureDataLookup; |
| 310 | 310 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 CommonElements commonElements, | 353 CommonElements commonElements, |
| 354 ConstantSystem constantSystem, | 354 ConstantSystem constantSystem, |
| 355 NativeData nativeData, | 355 NativeData nativeData, |
| 356 InterceptorData interceptorData, | 356 InterceptorData interceptorData, |
| 357 BackendUsage backendUsage, | 357 BackendUsage backendUsage, |
| 358 this.rtiNeed, | 358 this.rtiNeed, |
| 359 Set<ClassEntity> implementedClasses, | 359 Set<ClassEntity> implementedClasses, |
| 360 Iterable<ClassEntity> liveNativeClasses, | 360 Iterable<ClassEntity> liveNativeClasses, |
| 361 Iterable<MemberEntity> liveInstanceMembers, | 361 Iterable<MemberEntity> liveInstanceMembers, |
| 362 Iterable<MemberEntity> assignedInstanceMembers, | 362 Iterable<MemberEntity> assignedInstanceMembers, |
| 363 Set<TypedefElement> allTypedefs, | 363 Set<TypedefEntity> allTypedefs, |
| 364 Map<ClassEntity, Set<ClassEntity>> mixinUses, | 364 Map<ClassEntity, Set<ClassEntity>> mixinUses, |
| 365 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses, | 365 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses, |
| 366 Map<ClassEntity, ClassHierarchyNode> classHierarchyNodes, | 366 Map<ClassEntity, ClassHierarchyNode> classHierarchyNodes, |
| 367 Map<ClassEntity, ClassSet> classSets}) | 367 Map<ClassEntity, ClassSet> classSets}) |
| 368 : super( | 368 : super( |
| 369 elementEnvironment, | 369 elementEnvironment, |
| 370 dartTypes, | 370 dartTypes, |
| 371 commonElements, | 371 commonElements, |
| 372 constantSystem, | 372 constantSystem, |
| 373 nativeData, | 373 nativeData, |
| 374 interceptorData, | 374 interceptorData, |
| 375 backendUsage, | 375 backendUsage, |
| 376 implementedClasses, | 376 implementedClasses, |
| 377 liveNativeClasses, | 377 liveNativeClasses, |
| 378 liveInstanceMembers, | 378 liveInstanceMembers, |
| 379 assignedInstanceMembers, | 379 assignedInstanceMembers, |
| 380 allTypedefs, | 380 allTypedefs, |
| 381 mixinUses, | 381 mixinUses, |
| 382 typesImplementedBySubclasses, | 382 typesImplementedBySubclasses, |
| 383 classHierarchyNodes, | 383 classHierarchyNodes, |
| 384 classSets); | 384 classSets); |
| 385 | 385 |
| 386 @override | 386 @override |
| 387 void registerClosureClass(ClassElement cls) { | 387 void registerClosureClass(ClassElement cls) { |
| 388 throw new UnimplementedError('JsClosedWorld.registerClosureClass'); | 388 throw new UnimplementedError('JsClosedWorld.registerClosureClass'); |
| 389 } | 389 } |
| 390 } | 390 } |
| OLD | NEW |