| 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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 classElement == helpers.jsNullClass; | 1495 classElement == helpers.jsNullClass; |
| 1496 } | 1496 } |
| 1497 | 1497 |
| 1498 bool methodNeedsRti(FunctionElement function) { | 1498 bool methodNeedsRti(FunctionElement function) { |
| 1499 return rti.methodsNeedingRti.contains(function) || hasRuntimeTypeSupport; | 1499 return rti.methodsNeedingRti.contains(function) || hasRuntimeTypeSupport; |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 CodegenEnqueuer get codegenEnqueuer => compiler.enqueuer.codegen; | 1502 CodegenEnqueuer get codegenEnqueuer => compiler.enqueuer.codegen; |
| 1503 | 1503 |
| 1504 CodegenEnqueuer createCodegenEnqueuer(CompilerTask task, Compiler compiler) { | 1504 CodegenEnqueuer createCodegenEnqueuer(CompilerTask task, Compiler compiler) { |
| 1505 return new CodegenEnqueuer( | 1505 return new CodegenEnqueuer(task, compiler.cacheStrategy, this, |
| 1506 task, compiler, const TreeShakingEnqueuerStrategy()); | 1506 compiler.options, const TreeShakingEnqueuerStrategy()); |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 WorldImpact codegen(CodegenWorkItem work) { | 1509 WorldImpact codegen(CodegenWorkItem work) { |
| 1510 Element element = work.element; | 1510 Element element = work.element; |
| 1511 if (compiler.elementHasCompileTimeError(element)) { | 1511 if (compiler.elementHasCompileTimeError(element)) { |
| 1512 DiagnosticMessage message = | 1512 DiagnosticMessage message = |
| 1513 // If there's more than one error, the first is probably most | 1513 // If there's more than one error, the first is probably most |
| 1514 // informative, as the following errors may be side-effects of the | 1514 // informative, as the following errors may be side-effects of the |
| 1515 // first error. | 1515 // first error. |
| 1516 compiler.elementsWithCompileTimeErrors[element].first; | 1516 compiler.elementsWithCompileTimeErrors[element].first; |
| (...skipping 1776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3293 ClassElement get mapImplementation => helpers.mapLiteralClass; | 3293 ClassElement get mapImplementation => helpers.mapLiteralClass; |
| 3294 ClassElement get constMapImplementation => helpers.constMapLiteralClass; | 3294 ClassElement get constMapImplementation => helpers.constMapLiteralClass; |
| 3295 ClassElement get typeImplementation => helpers.typeLiteralClass; | 3295 ClassElement get typeImplementation => helpers.typeLiteralClass; |
| 3296 ClassElement get boolImplementation => helpers.jsBoolClass; | 3296 ClassElement get boolImplementation => helpers.jsBoolClass; |
| 3297 ClassElement get nullImplementation => helpers.jsNullClass; | 3297 ClassElement get nullImplementation => helpers.jsNullClass; |
| 3298 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable; | 3298 ClassElement get syncStarIterableImplementation => helpers.syncStarIterable; |
| 3299 ClassElement get asyncFutureImplementation => helpers.futureImplementation; | 3299 ClassElement get asyncFutureImplementation => helpers.futureImplementation; |
| 3300 ClassElement get asyncStarStreamImplementation => helpers.controllerStream; | 3300 ClassElement get asyncStarStreamImplementation => helpers.controllerStream; |
| 3301 ClassElement get functionImplementation => helpers.coreClasses.functionClass; | 3301 ClassElement get functionImplementation => helpers.coreClasses.functionClass; |
| 3302 } | 3302 } |
| OLD | NEW |