| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 rtiEncoder = new _RuntimeTypesEncoder(compiler), | 529 rtiEncoder = new _RuntimeTypesEncoder(compiler), |
| 530 annotations = new Annotations(compiler), | 530 annotations = new Annotations(compiler), |
| 531 this.sourceInformationStrategy = generateSourceMap | 531 this.sourceInformationStrategy = generateSourceMap |
| 532 ? (useNewSourceInfo | 532 ? (useNewSourceInfo |
| 533 ? new PositionSourceInformationStrategy() | 533 ? new PositionSourceInformationStrategy() |
| 534 : const StartEndSourceInformationStrategy()) | 534 : const StartEndSourceInformationStrategy()) |
| 535 : const JavaScriptSourceInformationStrategy(), | 535 : const JavaScriptSourceInformationStrategy(), |
| 536 impacts = new BackendImpacts(compiler), | 536 impacts = new BackendImpacts(compiler), |
| 537 frontend = new JSFrontendAccess(compiler), | 537 frontend = new JSFrontendAccess(compiler), |
| 538 this.compiler = compiler { | 538 this.compiler = compiler { |
| 539 helpers = | 539 helpers = new BackendHelpers(compiler.elementEnvironment, commonElements); |
| 540 new BackendHelpers(compiler.elementEnvironment, this, commonElements); | |
| 541 emitter = | 540 emitter = |
| 542 new CodeEmitterTask(compiler, generateSourceMap, useStartupEmitter); | 541 new CodeEmitterTask(compiler, generateSourceMap, useStartupEmitter); |
| 543 typeVariableHandler = new TypeVariableHandler(compiler); | 542 typeVariableHandler = new TypeVariableHandler(compiler); |
| 544 customElementsAnalysis = new CustomElementsAnalysis(this); | 543 customElementsAnalysis = new CustomElementsAnalysis(this); |
| 545 lookupMapAnalysis = new LookupMapAnalysis(this, reporter); | 544 lookupMapAnalysis = new LookupMapAnalysis(this, reporter); |
| 546 jsInteropAnalysis = new JsInteropAnalysis(this); | 545 jsInteropAnalysis = new JsInteropAnalysis(this); |
| 547 mirrorsAnalysis = new MirrorsAnalysis(this, compiler.resolution); | 546 mirrorsAnalysis = new MirrorsAnalysis(this, compiler.resolution); |
| 548 | 547 |
| 549 noSuchMethodRegistry = new NoSuchMethodRegistry(this); | 548 noSuchMethodRegistry = new NoSuchMethodRegistry(this); |
| 550 kernelTask = new KernelTask(compiler); | 549 kernelTask = new KernelTask(compiler); |
| (...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3192 } | 3191 } |
| 3193 | 3192 |
| 3194 @override | 3193 @override |
| 3195 FieldEntity get symbolField => helpers.symbolImplementationField; | 3194 FieldEntity get symbolField => helpers.symbolImplementationField; |
| 3196 | 3195 |
| 3197 @override | 3196 @override |
| 3198 InterfaceType get symbolType { | 3197 InterfaceType get symbolType { |
| 3199 return _env.getRawType(helpers.symbolImplementationClass); | 3198 return _env.getRawType(helpers.symbolImplementationClass); |
| 3200 } | 3199 } |
| 3201 } | 3200 } |
| OLD | NEW |