| Index: runtime/vm/flag_list.h
|
| diff --git a/runtime/vm/flag_list.h b/runtime/vm/flag_list.h
|
| index 9ab1c95d386cda9f92962a382cf3c2cac4a29bef..e94092b48b4123bda18eb122bdd004ab85c0e18d 100644
|
| --- a/runtime/vm/flag_list.h
|
| +++ b/runtime/vm/flag_list.h
|
| @@ -25,6 +25,12 @@
|
| #define USING_MULTICORE false
|
| #endif
|
|
|
| +#if defined(DEBUG)
|
| +#define USING_DEBUG true
|
| +#else
|
| +#define USING_DEBUG 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
|
| @@ -68,6 +74,9 @@
|
| "Dump megamorphic cache statistics") \
|
| R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \
|
| R(enable_asserts, false, bool, false, "Enable assert statements.") \
|
| + R(enable_malloc_hooks, false, bool, USING_DEBUG, \
|
| + "Enable native memory statistic collection. Enabled by default in Debug " \
|
| + "mode") \
|
| C(enable_mirrors, false, false, bool, true, \
|
| "Disable to make importing dart:mirrors an error.") \
|
| R(enable_type_checks, false, bool, false, "Enable type checks.") \
|
|
|