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

Side by Side Diff: src/flag-definitions.h

Issue 11437016: Use count-based profiling exclusively. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/execution.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 // Experimental profiler changes. 241 // Experimental profiler changes.
242 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments") 242 DEFINE_bool(experimental_profiler, true, "enable all profiler experiments")
243 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability") 243 DEFINE_bool(watch_ic_patching, false, "profiler considers IC stability")
244 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler") 244 DEFINE_int(frame_count, 1, "number of stack frames inspected by the profiler")
245 DEFINE_bool(self_optimization, false, 245 DEFINE_bool(self_optimization, false,
246 "primitive functions trigger their own optimization") 246 "primitive functions trigger their own optimization")
247 DEFINE_bool(direct_self_opt, false, 247 DEFINE_bool(direct_self_opt, false,
248 "call recompile stub directly when self-optimizing") 248 "call recompile stub directly when self-optimizing")
249 DEFINE_bool(retry_self_opt, false, "re-try self-optimization if it failed") 249 DEFINE_bool(retry_self_opt, false, "re-try self-optimization if it failed")
250 DEFINE_bool(count_based_interrupts, false,
251 "trigger profiler ticks based on counting instead of timing")
252 DEFINE_bool(interrupt_at_exit, false, 250 DEFINE_bool(interrupt_at_exit, false,
253 "insert an interrupt check at function exit") 251 "insert an interrupt check at function exit")
254 DEFINE_bool(weighted_back_edges, false, 252 DEFINE_bool(weighted_back_edges, false,
255 "weight back edges by jump distance for interrupt triggering") 253 "weight back edges by jump distance for interrupt triggering")
256 // 0x1700 fits in the immediate field of an ARM instruction. 254 // 0x1700 fits in the immediate field of an ARM instruction.
257 DEFINE_int(interrupt_budget, 0x1700, 255 DEFINE_int(interrupt_budget, 0x1700,
258 "execution budget before interrupt is triggered") 256 "execution budget before interrupt is triggered")
259 DEFINE_int(type_info_threshold, 15, 257 DEFINE_int(type_info_threshold, 15,
260 "percentage of ICs that must have type info to allow optimization") 258 "percentage of ICs that must have type info to allow optimization")
261 DEFINE_int(self_opt_count, 130, "call count before self-optimization") 259 DEFINE_int(self_opt_count, 130, "call count before self-optimization")
262 260
263 DEFINE_implication(experimental_profiler, watch_ic_patching) 261 DEFINE_implication(experimental_profiler, watch_ic_patching)
264 DEFINE_implication(experimental_profiler, self_optimization) 262 DEFINE_implication(experimental_profiler, self_optimization)
265 // Not implying direct_self_opt here because it seems to be a bad idea. 263 // Not implying direct_self_opt here because it seems to be a bad idea.
266 DEFINE_implication(experimental_profiler, retry_self_opt) 264 DEFINE_implication(experimental_profiler, retry_self_opt)
267 DEFINE_implication(experimental_profiler, count_based_interrupts)
268 DEFINE_implication(experimental_profiler, interrupt_at_exit) 265 DEFINE_implication(experimental_profiler, interrupt_at_exit)
269 DEFINE_implication(experimental_profiler, weighted_back_edges) 266 DEFINE_implication(experimental_profiler, weighted_back_edges)
270 267
271 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing") 268 DEFINE_bool(trace_opt_verbose, false, "extra verbose compilation tracing")
272 DEFINE_implication(trace_opt_verbose, trace_opt) 269 DEFINE_implication(trace_opt_verbose, trace_opt)
273 270
274 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc 271 // assembler-ia32.cc / assembler-arm.cc / assembler-x64.cc
275 DEFINE_bool(debug_code, false, 272 DEFINE_bool(debug_code, false,
276 "generate extra code (assertions) for debugging") 273 "generate extra code (assertions) for debugging")
277 DEFINE_bool(code_comments, false, "emit comments in code disassembly") 274 DEFINE_bool(code_comments, false, "emit comments in code disassembly")
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 #undef DEFINE_bool 719 #undef DEFINE_bool
723 #undef DEFINE_int 720 #undef DEFINE_int
724 #undef DEFINE_string 721 #undef DEFINE_string
725 #undef DEFINE_implication 722 #undef DEFINE_implication
726 723
727 #undef FLAG_MODE_DECLARE 724 #undef FLAG_MODE_DECLARE
728 #undef FLAG_MODE_DEFINE 725 #undef FLAG_MODE_DEFINE
729 #undef FLAG_MODE_DEFINE_DEFAULTS 726 #undef FLAG_MODE_DEFINE_DEFAULTS
730 #undef FLAG_MODE_META 727 #undef FLAG_MODE_META
731 #undef FLAG_MODE_DEFINE_IMPLICATIONS 728 #undef FLAG_MODE_DEFINE_IMPLICATIONS
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698