| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 // Tests that the closed world computed from [WorldImpact]s derived from kernel | 5 // Tests that the closed world computed from [WorldImpact]s derived from kernel |
| 6 // is equivalent to the original computed from resolution. | 6 // is equivalent to the original computed from resolution. |
| 7 library dart2js.kernel.closed_world_test; | 7 library dart2js.kernel.closed_world_test; |
| 8 | 8 |
| 9 import 'package:async_helper/async_helper.dart'; | 9 import 'package:async_helper/async_helper.dart'; |
| 10 import 'package:compiler/src/closure.dart'; | 10 import 'package:compiler/src/closure.dart'; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 }); | 144 }); |
| 145 } | 145 } |
| 146 | 146 |
| 147 EnqueuerListener createResolutionEnqueuerListener(Compiler compiler) { | 147 EnqueuerListener createResolutionEnqueuerListener(Compiler compiler) { |
| 148 JavaScriptBackend backend = compiler.backend; | 148 JavaScriptBackend backend = compiler.backend; |
| 149 return new ResolutionEnqueuerListener( | 149 return new ResolutionEnqueuerListener( |
| 150 compiler.options, | 150 compiler.options, |
| 151 compiler.elementEnvironment, | 151 compiler.elementEnvironment, |
| 152 compiler.commonElements, | 152 compiler.commonElements, |
| 153 backend.impacts, | 153 backend.impacts, |
| 154 backend.backendClasses, | |
| 155 backend.nativeBasicData, | 154 backend.nativeBasicData, |
| 156 backend.interceptorDataBuilder, | 155 backend.interceptorDataBuilder, |
| 157 backend.backendUsageBuilder, | 156 backend.backendUsageBuilder, |
| 158 backend.rtiNeedBuilder, | 157 backend.rtiNeedBuilder, |
| 159 backend.mirrorsDataBuilder, | 158 backend.mirrorsDataBuilder, |
| 160 backend.noSuchMethodRegistry, | 159 backend.noSuchMethodRegistry, |
| 161 backend.customElementsResolutionAnalysis, | 160 backend.customElementsResolutionAnalysis, |
| 162 backend.lookupMapResolutionAnalysis, | 161 backend.lookupMapResolutionAnalysis, |
| 163 backend.mirrorsResolutionAnalysis, | 162 backend.mirrorsResolutionAnalysis, |
| 164 new TypeVariableResolutionAnalysis(compiler.elementEnvironment, | 163 new TypeVariableResolutionAnalysis(compiler.elementEnvironment, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 final MemberElement element; | 195 final MemberElement element; |
| 197 | 196 |
| 198 KernelWorkItem(this._compiler, this._impactTransformer, this.element); | 197 KernelWorkItem(this._compiler, this._impactTransformer, this.element); |
| 199 | 198 |
| 200 @override | 199 @override |
| 201 WorldImpact run() { | 200 WorldImpact run() { |
| 202 ResolutionImpact resolutionImpact = build(_compiler, element.resolvedAst); | 201 ResolutionImpact resolutionImpact = build(_compiler, element.resolvedAst); |
| 203 return _impactTransformer.transformResolutionImpact(resolutionImpact); | 202 return _impactTransformer.transformResolutionImpact(resolutionImpact); |
| 204 } | 203 } |
| 205 } | 204 } |
| OLD | NEW |