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

Unified Diff: runtime/vm/flag_list.h

Issue 2944483002: Allow enabling --causal-async-stacks in AOT. (Closed)
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « no previous file | tests/standalone/causal_async_stack_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flag_list.h
diff --git a/runtime/vm/flag_list.h b/runtime/vm/flag_list.h
index 0ab9457691a130337f9857aab353637fcb44c4cc..2c327819c2edf3458bafa0de18d7fae51ec573d0 100644
--- a/runtime/vm/flag_list.h
+++ b/runtime/vm/flag_list.h
@@ -19,6 +19,13 @@
#define USING_MULTICORE false
#endif
+// Don't use USING_PRODUCT outside of this file.
+#if defined(PRODUCT)
+#define USING_PRODUCT true
+#else
+#define USING_PRODUCT false
+#endif
+
// List of all flags in the VM.
// Flags can be one of three categories:
// * P roduct flags: Can be set in any of the deployment modes, including in
@@ -134,7 +141,7 @@
P(reify_generic_functions, bool, false, \
"Enable reification of generic functions (not yet supported).") \
P(reorder_basic_blocks, bool, true, "Reorder basic blocks") \
- C(causal_async_stacks, false, false, bool, true, "Improved async stacks") \
+ P(causal_async_stacks, bool, !USING_PRODUCT, "Improved async stacks") \
C(stress_async_stacks, false, false, bool, false, \
"Stress test async stack traces") \
C(async_debugger, false, false, bool, true, \
« no previous file with comments | « no previous file | tests/standalone/causal_async_stack_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698