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

Unified Diff: pkg/compiler/lib/src/dart2js.dart

Issue 2847343002: Add support for profile-based startup optimizations. (Closed)
Patch Set: Address comments. Created 3 years, 7 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: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index a5a4deba233f91c2b537481f07096f8a108ee19b..c56ea75afba56943d049aa386a5a26c8940bb08d 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -403,6 +403,14 @@ Future<api.CompilationResult> compile(List<String> argv) {
new OptionHandler(Flags.useNewSourceInfo, passThrough),
new OptionHandler(Flags.testMode, passThrough),
+ // Experimental features.
+ // We don't provide documentation for these yet.
+ // TODO(29574): provide documentation when this feature is supported.
+ // TODO(29574): provide a warning/hint/error, when profile-based data is
+ // used without `--fast-startup`.
+ new OptionHandler(Flags.experimentalTrackAllocations, passThrough),
+ new OptionHandler("${Flags.experimentalAllocationsPath}=.+", passThrough),
+
// The following three options must come last.
new OptionHandler('-D.+=.*', addInEnvironment),
new OptionHandler('-.*', (String argument) {
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/js_emitter/code_emitter_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698