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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 "primitive functions trigger their own optimization") | 233 "primitive functions trigger their own optimization") |
234 DEFINE_bool(direct_self_opt, false, | 234 DEFINE_bool(direct_self_opt, false, |
235 "call recompile stub directly when self-optimizing") | 235 "call recompile stub directly when self-optimizing") |
236 DEFINE_bool(retry_self_opt, false, "re-try self-optimization if it failed") | 236 DEFINE_bool(retry_self_opt, false, "re-try self-optimization if it failed") |
237 DEFINE_bool(count_based_interrupts, false, | 237 DEFINE_bool(count_based_interrupts, false, |
238 "trigger profiler ticks based on counting instead of timing") | 238 "trigger profiler ticks based on counting instead of timing") |
239 DEFINE_bool(interrupt_at_exit, false, | 239 DEFINE_bool(interrupt_at_exit, false, |
240 "insert an interrupt check at function exit") | 240 "insert an interrupt check at function exit") |
241 DEFINE_bool(weighted_back_edges, false, | 241 DEFINE_bool(weighted_back_edges, false, |
242 "weight back edges by jump distance for interrupt triggering") | 242 "weight back edges by jump distance for interrupt triggering") |
243 DEFINE_int(interrupt_budget, 5900, | 243 // 0x1700 fits in the immediate field of an ARM instruction. |
| 244 DEFINE_int(interrupt_budget, 0x1700, |
244 "execution budget before interrupt is triggered") | 245 "execution budget before interrupt is triggered") |
245 DEFINE_int(type_info_threshold, 15, | 246 DEFINE_int(type_info_threshold, 15, |
246 "percentage of ICs that must have type info to allow optimization") | 247 "percentage of ICs that must have type info to allow optimization") |
247 DEFINE_int(self_opt_count, 130, "call count before self-optimization") | 248 DEFINE_int(self_opt_count, 130, "call count before self-optimization") |
248 | 249 |
249 DEFINE_implication(experimental_profiler, watch_ic_patching) | 250 DEFINE_implication(experimental_profiler, watch_ic_patching) |
250 DEFINE_implication(experimental_profiler, self_optimization) | 251 DEFINE_implication(experimental_profiler, self_optimization) |
251 // Not implying direct_self_opt here because it seems to be a bad idea. | 252 // Not implying direct_self_opt here because it seems to be a bad idea. |
252 DEFINE_implication(experimental_profiler, retry_self_opt) | 253 DEFINE_implication(experimental_profiler, retry_self_opt) |
253 DEFINE_implication(experimental_profiler, count_based_interrupts) | 254 DEFINE_implication(experimental_profiler, count_based_interrupts) |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 #undef DEFINE_bool | 688 #undef DEFINE_bool |
688 #undef DEFINE_int | 689 #undef DEFINE_int |
689 #undef DEFINE_string | 690 #undef DEFINE_string |
690 #undef DEFINE_implication | 691 #undef DEFINE_implication |
691 | 692 |
692 #undef FLAG_MODE_DECLARE | 693 #undef FLAG_MODE_DECLARE |
693 #undef FLAG_MODE_DEFINE | 694 #undef FLAG_MODE_DEFINE |
694 #undef FLAG_MODE_DEFINE_DEFAULTS | 695 #undef FLAG_MODE_DEFINE_DEFAULTS |
695 #undef FLAG_MODE_META | 696 #undef FLAG_MODE_META |
696 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 697 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
OLD | NEW |