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

Unified Diff: tests/compiler/dart2js/kernel/helper.dart

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)
Patch Set: update status 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/kernel/helper.dart
diff --git a/tests/compiler/dart2js/kernel/helper.dart b/tests/compiler/dart2js/kernel/helper.dart
index d64c48cbe40bacdbe028e78b7e719ba2725977fc..8b9fcd4cf88b21f66e482f70589c4843aa6f7dc4 100644
--- a/tests/compiler/dart2js/kernel/helper.dart
+++ b/tests/compiler/dart2js/kernel/helper.dart
@@ -16,14 +16,14 @@ import '../memory_compiler.dart';
Future<String> compile(String code,
{dynamic lookup: 'main',
- bool useKernel: true,
+ bool useKernelInSsa: true,
bool disableTypeInference: true,
List<String> extraOptions: const <String>[]}) async {
List<String> options = <String>[
Flags.disableInlining,
];
if (disableTypeInference) options.add(Flags.disableTypeInference);
- if (useKernel) options.add(Flags.useKernel);
+ if (useKernelInSsa) options.add(Flags.useKernelInSsa);
options.addAll(extraOptions);
if (lookup is String && lookup != 'main' && !code.contains('main')) {
@@ -58,12 +58,12 @@ Future check(String code,
List<String> extraOptions: const <String>[]}) async {
var original = await compile(code,
lookup: lookup,
- useKernel: false,
+ useKernelInSsa: false,
disableTypeInference: disableTypeInference,
extraOptions: extraOptions);
var kernel = await compile(code,
lookup: lookup,
- useKernel: true,
+ useKernelInSsa: true,
disableTypeInference: disableTypeInference,
extraOptions: extraOptions);
expect(kernel, original);

Powered by Google App Engine
This is Rietveld 408576698