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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 DEFINE_int(loop_weight, 1, "loop weight for representation inference") | 170 DEFINE_int(loop_weight, 1, "loop weight for representation inference") |
171 | 171 |
172 // Experimental profiler changes. | 172 // Experimental profiler changes. |
173 DEFINE_bool(experimental_profiler, false, "enable all profiler experiments") | 173 DEFINE_bool(experimental_profiler, false, "enable all profiler experiments") |
174 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") | 174 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") |
175 DEFINE_int(frame_count, 2, "number of stack frames inspected by the profiler") | 175 DEFINE_int(frame_count, 2, "number of stack frames inspected by the profiler") |
176 DEFINE_bool(self_optimization, false, | 176 DEFINE_bool(self_optimization, false, |
177 "primitive functions trigger their own optimization") | 177 "primitive functions trigger their own optimization") |
178 DEFINE_bool(count_based_interrupts, false, | 178 DEFINE_bool(count_based_interrupts, false, |
179 "trigger profiler ticks based on counting instead of timing") | 179 "trigger profiler ticks based on counting instead of timing") |
| 180 DEFINE_bool(interrupt_at_exit, false, |
| 181 "insert an interrupt check at function exit") |
180 DEFINE_bool(weighted_back_edges, false, | 182 DEFINE_bool(weighted_back_edges, false, |
181 "weight back edges by jump distance for interrupt triggering") | 183 "weight back edges by jump distance for interrupt triggering") |
182 DEFINE_int(interrupt_budget, 10000, | 184 DEFINE_int(interrupt_budget, 10000, |
183 "execution budget before interrupt is triggered") | 185 "execution budget before interrupt is triggered") |
184 DEFINE_int(type_info_threshold, 0, | 186 DEFINE_int(type_info_threshold, 0, |
185 "percentage of ICs that must have type info to allow optimization") | 187 "percentage of ICs that must have type info to allow optimization") |
186 | 188 |
187 DEFINE_implication(experimental_profiler, watch_ic_patching) | 189 DEFINE_implication(experimental_profiler, watch_ic_patching) |
188 DEFINE_implication(experimental_profiler, self_optimization) | 190 DEFINE_implication(experimental_profiler, self_optimization) |
189 DEFINE_implication(experimental_profiler, count_based_interrupts) | 191 DEFINE_implication(experimental_profiler, count_based_interrupts) |
| 192 DEFINE_implication(experimental_profiler, interrupt_at_exit) |
190 DEFINE_implication(experimental_profiler, weighted_back_edges) | 193 DEFINE_implication(experimental_profiler, weighted_back_edges) |
191 | 194 |
192 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing") | 195 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing") |
193 DEFINE_implication(trace_opt_verbose, trace_opt) | 196 DEFINE_implication(trace_opt_verbose, trace_opt) |
194 | 197 |
195 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc | 198 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc |
196 DEFINE_bool(debug_code, false, | 199 DEFINE_bool(debug_code, false, |
197 "generate extra code (assertions) for debugging") | 200 "generate extra code (assertions) for debugging") |
198 DEFINE_bool(code_comments, false, "emit comments in code disassembly") | 201 DEFINE_bool(code_comments, false, "emit comments in code disassembly") |
199 DEFINE_bool(enable_sse2, true, | 202 DEFINE_bool(enable_sse2, true, |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 #undef DEFINE_bool | 590 #undef DEFINE_bool |
588 #undef DEFINE_int | 591 #undef DEFINE_int |
589 #undef DEFINE_string | 592 #undef DEFINE_string |
590 #undef DEFINE_implication | 593 #undef DEFINE_implication |
591 | 594 |
592 #undef FLAG_MODE_DECLARE | 595 #undef FLAG_MODE_DECLARE |
593 #undef FLAG_MODE_DEFINE | 596 #undef FLAG_MODE_DEFINE |
594 #undef FLAG_MODE_DEFINE_DEFAULTS | 597 #undef FLAG_MODE_DEFINE_DEFAULTS |
595 #undef FLAG_MODE_META | 598 #undef FLAG_MODE_META |
596 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 599 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |