OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 DEFINE_implication(harmony, harmony_generators) | 183 DEFINE_implication(harmony, harmony_generators) |
184 DEFINE_implication(harmony, harmony_iteration) | 184 DEFINE_implication(harmony, harmony_iteration) |
185 DEFINE_implication(harmony, harmony_numeric_literals) | 185 DEFINE_implication(harmony, harmony_numeric_literals) |
186 DEFINE_implication(harmony_modules, harmony_scoping) | 186 DEFINE_implication(harmony_modules, harmony_scoping) |
187 DEFINE_implication(harmony_observation, harmony_collections) | 187 DEFINE_implication(harmony_observation, harmony_collections) |
188 // TODO[dslomov] add harmony => harmony_typed_arrays | 188 // TODO[dslomov] add harmony => harmony_typed_arrays |
189 | 189 |
190 // Flags for experimental implementation features. | 190 // Flags for experimental implementation features. |
191 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") | 191 DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") |
192 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") | 192 DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") |
| 193 DEFINE_bool(compiled_transitions, true, "use optimizing compiler to " |
| 194 "generate array elements transition stubs") |
193 DEFINE_bool(compiled_keyed_stores, true, "use optimizing compiler to " | 195 DEFINE_bool(compiled_keyed_stores, true, "use optimizing compiler to " |
194 "generate keyed store stubs") | 196 "generate keyed store stubs") |
195 DEFINE_bool(clever_optimizations, | 197 DEFINE_bool(clever_optimizations, |
196 true, | 198 true, |
197 "Optimize object size, Array shift, DOM strings and string +") | 199 "Optimize object size, Array shift, DOM strings and string +") |
198 DEFINE_bool(pretenuring, true, "allocate objects in old space") | 200 DEFINE_bool(pretenuring, true, "allocate objects in old space") |
199 // TODO(hpayer): We will remove this flag as soon as we have pretenuring | 201 // TODO(hpayer): We will remove this flag as soon as we have pretenuring |
200 // support for specific allocation sites. | 202 // support for specific allocation sites. |
201 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") | 203 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") |
202 DEFINE_bool(track_fields, true, "track fields with only smi values") | 204 DEFINE_bool(track_fields, true, "track fields with only smi values") |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 DEFINE_bool(log_code, false, | 737 DEFINE_bool(log_code, false, |
736 "Log code events to the log file without profiling.") | 738 "Log code events to the log file without profiling.") |
737 DEFINE_bool(log_gc, false, | 739 DEFINE_bool(log_gc, false, |
738 "Log heap samples on garbage collection for the hp2ps tool.") | 740 "Log heap samples on garbage collection for the hp2ps tool.") |
739 DEFINE_bool(log_handles, false, "Log global handle events.") | 741 DEFINE_bool(log_handles, false, "Log global handle events.") |
740 DEFINE_bool(log_snapshot_positions, false, | 742 DEFINE_bool(log_snapshot_positions, false, |
741 "log positions of (de)serialized objects in the snapshot.") | 743 "log positions of (de)serialized objects in the snapshot.") |
742 DEFINE_bool(log_suspect, false, "Log suspect operations.") | 744 DEFINE_bool(log_suspect, false, "Log suspect operations.") |
743 DEFINE_bool(prof, false, | 745 DEFINE_bool(prof, false, |
744 "Log statistical profiling information (implies --log-code).") | 746 "Log statistical profiling information (implies --log-code).") |
| 747 DEFINE_bool(prof_auto, true, |
| 748 "Used with --prof, starts profiling automatically") |
745 DEFINE_bool(prof_lazy, false, | 749 DEFINE_bool(prof_lazy, false, |
746 "Used with --prof, only does sampling and logging" | 750 "Used with --prof, only does sampling and logging" |
747 " when profiler is active.") | 751 " when profiler is active (implies --noprof_auto).") |
748 DEFINE_bool(prof_browser_mode, true, | 752 DEFINE_bool(prof_browser_mode, true, |
749 "Used with --prof, turns on browser-compatible mode for profiling.") | 753 "Used with --prof, turns on browser-compatible mode for profiling.") |
750 DEFINE_bool(log_regexp, false, "Log regular expression execution.") | 754 DEFINE_bool(log_regexp, false, "Log regular expression execution.") |
751 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") | 755 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") |
752 DEFINE_bool(ll_prof, false, "Enable low-level linux profiler.") | 756 DEFINE_bool(ll_prof, false, "Enable low-level linux profiler.") |
753 DEFINE_string(gc_fake_mmap, "/tmp/__v8_gc__", | 757 DEFINE_string(gc_fake_mmap, "/tmp/__v8_gc__", |
754 "Specify the name of the file for fake gc mmap used in ll_prof") | 758 "Specify the name of the file for fake gc mmap used in ll_prof") |
755 DEFINE_bool(log_internal_timer_events, false, "Time internal events.") | 759 DEFINE_bool(log_internal_timer_events, false, "Time internal events.") |
756 DEFINE_bool(log_timer_events, false, | 760 DEFINE_bool(log_timer_events, false, |
757 "Time events including external callbacks.") | 761 "Time events including external callbacks.") |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 #undef DEFINE_bool | 815 #undef DEFINE_bool |
812 #undef DEFINE_int | 816 #undef DEFINE_int |
813 #undef DEFINE_string | 817 #undef DEFINE_string |
814 #undef DEFINE_implication | 818 #undef DEFINE_implication |
815 | 819 |
816 #undef FLAG_MODE_DECLARE | 820 #undef FLAG_MODE_DECLARE |
817 #undef FLAG_MODE_DEFINE | 821 #undef FLAG_MODE_DEFINE |
818 #undef FLAG_MODE_DEFINE_DEFAULTS | 822 #undef FLAG_MODE_DEFINE_DEFAULTS |
819 #undef FLAG_MODE_META | 823 #undef FLAG_MODE_META |
820 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 824 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |