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

Side by Side Diff: pkg/kernel/test/reify/suite.dart

Issue 2919003003: Reapply "Use backend targets to run Kernel transformations in Fasta" (Closed)
Patch Set: Follow dartanalyzer suggestions 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library test.kernel.reify.suite; 5 library test.kernel.reify.suite;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'dart:io' show Directory, File, Platform; 9 import 'dart:io' show Directory, File, Platform;
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 String path = description.file.path; 191 String path = description.file.path;
192 Uri uri = Uri.base.resolve(path); 192 Uri uri = Uri.base.resolve(path);
193 loader.loadProgram(uri, target: target); 193 loader.loadProgram(uri, target: target);
194 var program = loader.program; 194 var program = loader.program;
195 for (var error in loader.errors) { 195 for (var error in loader.errors) {
196 return fail(program, "$error"); 196 return fail(program, "$error");
197 } 197 }
198 var coreTypes = new CoreTypes(program); 198 var coreTypes = new CoreTypes(program);
199 var hierarchy = new ClosedWorldClassHierarchy(program); 199 var hierarchy = new ClosedWorldClassHierarchy(program);
200 target 200 target
201 ..performModularTransformations(coreTypes, hierarchy, program) 201 ..performModularTransformationsOnProgram(coreTypes, hierarchy, program)
202 ..performGlobalTransformations(coreTypes, program); 202 ..performGlobalTransformations(coreTypes, program);
203 return pass(program); 203 return pass(program);
204 } catch (e, s) { 204 } catch (e, s) {
205 return crash(e, s); 205 return crash(e, s);
206 } 206 }
207 } 207 }
208 } 208 }
209 209
210 class GenericTypesReification extends Step<Program, Program, TestContext> { 210 class GenericTypesReification extends Step<Program, Program, TestContext> {
211 const GenericTypesReification(); 211 const GenericTypesReification();
(...skipping 24 matching lines...) Expand all
236 await StdioProcess.run(context.vm.toFilePath(), [generated.path]); 236 await StdioProcess.run(context.vm.toFilePath(), [generated.path]);
237 print(process.output); 237 print(process.output);
238 } finally { 238 } finally {
239 generated.parent.delete(recursive: true); 239 generated.parent.delete(recursive: true);
240 } 240 }
241 return process.toResult(); 241 return process.toResult();
242 } 242 }
243 } 243 }
244 244
245 main(List<String> arguments) => runMe(arguments, createContext, "testing.json"); 245 main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698