| 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 js_backend.backend.resolution_listener; | 5 library js_backend.backend.resolution_listener; |
| 6 | 6 |
| 7 import '../common/names.dart' show Identifiers, Uris; | 7 import '../common/names.dart' show Identifiers, Uris; |
| 8 import '../common_elements.dart' show CommonElements, ElementEnvironment; | 8 import '../common_elements.dart' show CommonElements, ElementEnvironment; |
| 9 import '../constants/values.dart'; | 9 import '../constants/values.dart'; |
| 10 import '../deferred_load.dart'; | 10 import '../deferred_load.dart'; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 (_noSuchMethodRegistry.hasThrowingNoSuchMethod || | 221 (_noSuchMethodRegistry.hasThrowingNoSuchMethod || |
| 222 _noSuchMethodRegistry.hasComplexNoSuchMethod)) { | 222 _noSuchMethodRegistry.hasComplexNoSuchMethod)) { |
| 223 _backendUsage.processBackendImpact(_impacts.noSuchMethodSupport); | 223 _backendUsage.processBackendImpact(_impacts.noSuchMethodSupport); |
| 224 enqueuer.applyImpact( | 224 enqueuer.applyImpact( |
| 225 _impacts.noSuchMethodSupport.createImpact(_elementEnvironment)); | 225 _impacts.noSuchMethodSupport.createImpact(_elementEnvironment)); |
| 226 _backendUsage.isNoSuchMethodUsed = true; | 226 _backendUsage.isNoSuchMethodUsed = true; |
| 227 } | 227 } |
| 228 | 228 |
| 229 if (!enqueuer.queueIsEmpty) return false; | 229 if (!enqueuer.queueIsEmpty) return false; |
| 230 | 230 |
| 231 if (_options.useKernel) { | 231 if (!_options.previewDart2 && _options.useKernel) { |
| 232 _kernelTask?.buildKernelIr(); | 232 _kernelTask?.buildKernelIr(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 _mirrorsAnalysis.onQueueEmpty(enqueuer, recentClasses); | 235 _mirrorsAnalysis.onQueueEmpty(enqueuer, recentClasses); |
| 236 return true; | 236 return true; |
| 237 } | 237 } |
| 238 | 238 |
| 239 @override | 239 @override |
| 240 void onQueueClosed() {} | 240 void onQueueClosed() {} |
| 241 | 241 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 } | 499 } |
| 500 _registerBackendImpact( | 500 _registerBackendImpact( |
| 501 impactBuilder, new BackendImpact(globalUses: staticUses)); | 501 impactBuilder, new BackendImpact(globalUses: staticUses)); |
| 502 } | 502 } |
| 503 | 503 |
| 504 @override | 504 @override |
| 505 void logSummary(void log(String message)) { | 505 void logSummary(void log(String message)) { |
| 506 _nativeEnqueuer.logSummary(log); | 506 _nativeEnqueuer.logSummary(log); |
| 507 } | 507 } |
| 508 } | 508 } |
| OLD | NEW |