Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: tests/compiler/dart2js/kernel/compile_from_dill_test.dart

Issue 2932793005: Rename FrontEndStrategy to FrontendStrategy (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // Partial test that the closed world computed from [WorldImpact]s derived from 5 // Partial test that the closed world computed from [WorldImpact]s derived from
6 // kernel is equivalent to the original computed from resolution. 6 // kernel is equivalent to the original computed from resolution.
7 library dart2js.kernel.compile_from_dill_test; 7 library dart2js.kernel.compile_from_dill_test;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 entryPoint, 116 entryPoint,
117 const {}, 117 const {},
118 [ 118 [
119 Flags.disableTypeInference, 119 Flags.disableTypeInference,
120 Flags.disableInlining, 120 Flags.disableInlining,
121 Flags.enableAssertMessage 121 Flags.enableAssertMessage
122 ], 122 ],
123 printSteps: true, 123 printSteps: true,
124 compilerOutput: collector2); 124 compilerOutput: collector2);
125 125
126 KernelFrontEndStrategy frontEndStrategy = compiler2.frontEndStrategy; 126 KernelFrontEndStrategy frontendStrategy = compiler2.frontendStrategy;
127 KernelToElementMap elementMap = frontEndStrategy.elementMap; 127 KernelToElementMap elementMap = frontendStrategy.elementMap;
128 128
129 Expect.isFalse(compiler2.compilationFailed); 129 Expect.isFalse(compiler2.compilationFailed);
130 130
131 KernelEquivalence equivalence = new KernelEquivalence(elementMap); 131 KernelEquivalence equivalence = new KernelEquivalence(elementMap);
132 132
133 ClosedWorld closedWorld2 = 133 ClosedWorld closedWorld2 =
134 compiler2.resolutionWorldBuilder.closedWorldForTesting; 134 compiler2.resolutionWorldBuilder.closedWorldForTesting;
135 135
136 checkBackendUsage(closedWorld1.backendUsage, closedWorld2.backendUsage, 136 checkBackendUsage(closedWorld1.backendUsage, closedWorld2.backendUsage,
137 equivalence.defaultStrategy); 137 equivalence.defaultStrategy);
(...skipping 30 matching lines...) Expand all
168 } 168 }
169 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; 169 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType];
170 checkSets(map1.keys, map2.keys, 'output', equality); 170 checkSets(map1.keys, map2.keys, 'output', equality);
171 map1.forEach((String name, BufferedOutputSink output1) { 171 map1.forEach((String name, BufferedOutputSink output1) {
172 BufferedOutputSink output2 = map2[name]; 172 BufferedOutputSink output2 = map2[name];
173 Expect.stringEquals(output1.text, output2.text); 173 Expect.stringEquals(output1.text, output2.text);
174 }); 174 });
175 }); 175 });
176 return ResultKind.success; 176 return ResultKind.success;
177 } 177 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/kernel/closed_world_from_dill_test.dart ('k') | tests/compiler/dart2js/kernel/compiler_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698