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

Side by Side Diff: tests/compiler/dart2js/dill_loader_test.dart

Issue 2974703002: Move forward rolling FE public APIS (make bots green) (Closed)
Patch Set: Created 3 years, 5 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'memory_compiler.dart'; 7 import 'memory_compiler.dart';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:compiler/src/commandline_options.dart'; 9 import 'package:compiler/src/commandline_options.dart';
10 import 'package:compiler/src/common_elements.dart'; 10 import 'package:compiler/src/common_elements.dart';
(...skipping 30 matching lines...) Expand all
41 DiagnosticCollector diagnostics = new DiagnosticCollector(); 41 DiagnosticCollector diagnostics = new DiagnosticCollector();
42 OutputCollector output = new OutputCollector(); 42 OutputCollector output = new OutputCollector();
43 Uri entryPoint = Uri.parse('memory:main.dill'); 43 Uri entryPoint = Uri.parse('memory:main.dill');
44 44
45 var platform = Uri 45 var platform = Uri
46 .parse(Platform.resolvedExecutable) 46 .parse(Platform.resolvedExecutable)
47 .resolve('patched_dart2js_sdk/platform.dill'); 47 .resolve('patched_dart2js_sdk/platform.dill');
48 var options = new CompilerOptions() 48 var options = new CompilerOptions()
49 ..target = new Dart2jsTarget(new TargetFlags()) 49 ..target = new Dart2jsTarget(new TargetFlags())
50 ..packagesFileUri = Platform.script.resolve('../../../.packages') 50 ..packagesFileUri = Platform.script.resolve('../../../.packages')
51 ..compileSdk = true
Siggi Cherem (dart-lang) 2017/07/08 04:14:52 this was not required the first time I updated thi
51 ..linkedDependencies = [platform] 52 ..linkedDependencies = [platform]
52 ..verify = true 53 ..verify = true
53 ..onError = errorHandler; 54 ..onError = errorHandler;
54 55
55 List<int> kernelBinary = 56 List<int> kernelBinary =
56 serializeProgram(await kernelForProgram(uri, options)); 57 serializeProgram(await kernelForProgram(uri, options));
57 CompilerImpl compiler = compilerFor( 58 CompilerImpl compiler = compilerFor(
58 entryPoint: entryPoint, 59 entryPoint: entryPoint,
59 memorySourceFiles: {'main.dill': kernelBinary}, 60 memorySourceFiles: {'main.dill': kernelBinary},
60 diagnosticHandler: diagnostics, 61 diagnosticHandler: diagnostics,
(...skipping 13 matching lines...) Expand all
74 Expect.isNotNull(clss); 75 Expect.isNotNull(clss);
75 var member = environment.lookupClassMember(clss, 'testMain'); 76 var member = environment.lookupClassMember(clss, 'testMain');
76 Expect.isNotNull(member); 77 Expect.isNotNull(member);
77 }); 78 });
78 } 79 }
79 80
80 void errorHandler(CompilationError e) { 81 void errorHandler(CompilationError e) {
81 exitCode = 1; 82 exitCode = 1;
82 print(e.message); 83 print(e.message);
83 } 84 }
OLDNEW
« no previous file with comments | « pkg/compiler/tool/generate_kernel.dart ('k') | tests/compiler/dart2js/kernel/compiler_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698