| 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 js_backend.backend; | 5 library js_backend.backend; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 | 8 |
| 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| 10 | 10 |
| (...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2363 if (!enqueuer.queueIsEmpty) return false; | 2363 if (!enqueuer.queueIsEmpty) return false; |
| 2364 | 2364 |
| 2365 noSuchMethodRegistry.onQueueEmpty(); | 2365 noSuchMethodRegistry.onQueueEmpty(); |
| 2366 if (!enabledNoSuchMethod && | 2366 if (!enabledNoSuchMethod && |
| 2367 (noSuchMethodRegistry.hasThrowingNoSuchMethod || | 2367 (noSuchMethodRegistry.hasThrowingNoSuchMethod || |
| 2368 noSuchMethodRegistry.hasComplexNoSuchMethod)) { | 2368 noSuchMethodRegistry.hasComplexNoSuchMethod)) { |
| 2369 enableNoSuchMethod(enqueuer); | 2369 enableNoSuchMethod(enqueuer); |
| 2370 enabledNoSuchMethod = true; | 2370 enabledNoSuchMethod = true; |
| 2371 } | 2371 } |
| 2372 | 2372 |
| 2373 if (compiler.options.useKernel) { | 2373 if (compiler.options.useKernel && compiler.mainApp != null) { |
| 2374 kernelTask.buildKernelIr(); | 2374 kernelTask.buildKernelIr(); |
| 2375 } | 2375 } |
| 2376 | 2376 |
| 2377 if (compiler.options.hasIncrementalSupport) { | 2377 if (compiler.options.hasIncrementalSupport) { |
| 2378 // Always enable tear-off closures during incremental compilation. | 2378 // Always enable tear-off closures during incremental compilation. |
| 2379 Element e = helpers.closureFromTearOff; | 2379 Element e = helpers.closureFromTearOff; |
| 2380 if (e != null && !enqueuer.isProcessed(e)) { | 2380 if (e != null && !enqueuer.isProcessed(e)) { |
| 2381 registerBackendUse(e); | 2381 registerBackendUse(e); |
| 2382 enqueuer.addToWorkList(e); | 2382 enqueuer.addToWorkList(e); |
| 2383 } | 2383 } |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3265 ClassElement get mapImplementation => helpers.mapLiteralClass; | 3265 ClassElement get mapImplementation => helpers.mapLiteralClass; |
| 3266 ClassElement get constMapImplementation => helpers.constMapLiteralClass; | 3266 ClassElement get constMapImplementation => helpers.constMapLiteralClass; |
| 3267 ClassElement get typeImplementation => helpers.typeLiteralClass; | 3267 ClassElement get typeImplementation => helpers.typeLiteralClass; |
| 3268 ClassElement get boolImplementation => helpers.jsBoolClass; | 3268 ClassElement get boolImplementation => helpers.jsBoolClass; |
| 3269 ClassElement get nullImplementation => helpers.jsNullClass; | 3269 ClassElement get nullImplementation => helpers.jsNullClass; |
| 3270 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable; | 3270 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable; |
| 3271 ClassElement get asyncFutureImplementation => helpers.futureImplementation; | 3271 ClassElement get asyncFutureImplementation => helpers.futureImplementation; |
| 3272 ClassElement get asyncStarStreamImplementation => helpers.controllerStream; | 3272 ClassElement get asyncStarStreamImplementation => helpers.controllerStream; |
| 3273 ClassElement get functionImplementation => helpers.coreClasses.functionClass; | 3273 ClassElement get functionImplementation => helpers.coreClasses.functionClass; |
| 3274 } | 3274 } |
| OLD | NEW |