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

Unified Diff: tests/compiler/dart2js/message_kind_helper.dart

Issue 1322973007: Use memory compiler in compiler_helper.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update cf. comments. Created 5 years, 3 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/message_kind_helper.dart
diff --git a/tests/compiler/dart2js/message_kind_helper.dart b/tests/compiler/dart2js/message_kind_helper.dart
index af32b58ceb8e621f9707769cb6ccef2dfeb865ef..12089cfcb91c7005ef602416cf4d52c6d70e7aa8 100644
--- a/tests/compiler/dart2js/message_kind_helper.dart
+++ b/tests/compiler/dart2js/message_kind_helper.dart
@@ -7,6 +7,7 @@ library dart2js.test.message_kind_helper;
import 'package:expect/expect.dart';
import 'dart:async';
+import 'package:compiler/src/commandline_options.dart';
import 'package:compiler/src/compiler.dart' show
Compiler;
import 'package:compiler/src/dart_backend/dart_backend.dart' show
@@ -84,8 +85,8 @@ Future<Compiler> check(MessageTemplate template, Compiler cachedCompiler) {
Compiler compiler = compilerFor(
memorySourceFiles: example,
diagnosticHandler: new LegacyCompilerDiagnostics(collect),
- options: ['--analyze-only',
- '--enable-experimental-mirrors']..addAll(template.options),
+ options: [Flags.analyzeOnly,
+ Flags.enableExperimentalMirrors]..addAll(template.options),
cachedCompiler:
// TODO(johnniwinther): Remove this restriction when constant
// values can be computed directly from the expressions.
« no previous file with comments | « tests/compiler/dart2js/js_spec_optimization_test.dart ('k') | tests/compiler/dart2js/pretty_parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698