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

Unified Diff: pkg/compiler/tool/perf.dart

Issue 2521073003: Remove the ability in dart2js to turn off syntax-only generic methods. (Closed)
Patch Set: eernst Created 4 years, 1 month 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: pkg/compiler/tool/perf.dart
diff --git a/pkg/compiler/tool/perf.dart b/pkg/compiler/tool/perf.dart
index 348570d0cb938c49f7982490e68c0582f01af606..7705061577a73490f464d575779bf8aff37c5617 100644
--- a/pkg/compiler/tool/perf.dart
+++ b/pkg/compiler/tool/perf.dart
@@ -18,7 +18,6 @@ import 'package:compiler/src/diagnostics/diagnostic_listener.dart';
import 'package:compiler/src/diagnostics/messages.dart'
show Message, MessageTemplate;
import 'package:compiler/src/io/source_file.dart';
-import 'package:compiler/src/options.dart' show ParserOptions;
import 'package:compiler/src/options.dart';
import 'package:compiler/src/parser/element_listener.dart' show ScannerOptions;
import 'package:compiler/src/parser/listener.dart';
@@ -182,7 +181,7 @@ Future collectSources(SourceFile start, Set<SourceFile> files) async {
Set<String> parseDirectives(SourceFile source) {
var tokens = tokenize(source);
var listener = new DirectiveListener();
- new PartialParser(listener, const _ParserOptions()).parseUnit(tokens);
+ new PartialParser(listener).parseUnit(tokens);
return listener.targets;
}
@@ -191,7 +190,7 @@ parseFull(SourceFile source) {
var tokens = tokenize(source);
NodeListener listener = new NodeListener(
const ScannerOptions(canUseNative: true), new FakeReporter(), null);
- Parser parser = new Parser(listener, const _ParserOptions());
+ Parser parser = new Parser(listener);
parser.parseUnit(tokens);
return listener.popNode();
}
@@ -333,11 +332,6 @@ class _Loader {
}
}
-class _ParserOptions implements ParserOptions {
- const _ParserOptions();
- bool get enableGenericMethodSyntax => true;
-}
-
generateKernel(Uri entryUri) async {
var timer = new Stopwatch()..start();
var options = new CompilerOptions(
« no previous file with comments | « pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart ('k') | tests/compiler/dart2js/options_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698