OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 DEFINE_bool(log_state_changes, false, "Log state changes.") | 330 DEFINE_bool(log_state_changes, false, "Log state changes.") |
331 DEFINE_bool(log_suspect, false, "Log suspect operations.") | 331 DEFINE_bool(log_suspect, false, "Log suspect operations.") |
332 DEFINE_bool(prof, false, | 332 DEFINE_bool(prof, false, |
333 "Log statistical profiling information (implies --log-code).") | 333 "Log statistical profiling information (implies --log-code).") |
334 DEFINE_bool(prof_auto, true, | 334 DEFINE_bool(prof_auto, true, |
335 "Used with --prof, starts profiling automatically") | 335 "Used with --prof, starts profiling automatically") |
336 DEFINE_bool(log_regexp, false, "Log regular expression execution.") | 336 DEFINE_bool(log_regexp, false, "Log regular expression execution.") |
337 DEFINE_bool(sliding_state_window, false, | 337 DEFINE_bool(sliding_state_window, false, |
338 "Update sliding state window counters.") | 338 "Update sliding state window counters.") |
339 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") | 339 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") |
340 DEFINE_bool(oprofile, false, | 340 DEFINE_bool(oprofile, false, "Enable JIT agent for OProfile.") |
341 "Enable JIT agent for OProfile.") | 341 |
| 342 // |
| 343 // Heap protection flags |
| 344 // Using heap protection requires ENABLE_LOGGING_AND_PROFILING as well. |
| 345 // |
| 346 #ifdef ENABLE_HEAP_PROTECTION |
| 347 #undef FLAG |
| 348 #define FLAG FLAG_FULL |
| 349 |
| 350 DEFINE_bool(protect_heap, false, |
| 351 "Protect/unprotect V8's heap when leaving/entring the VM.") |
| 352 |
| 353 #endif |
342 | 354 |
343 // | 355 // |
344 // Disassembler only flags | 356 // Disassembler only flags |
345 // | 357 // |
346 #undef FLAG | 358 #undef FLAG |
347 #ifdef ENABLE_DISASSEMBLER | 359 #ifdef ENABLE_DISASSEMBLER |
348 #define FLAG FLAG_FULL | 360 #define FLAG FLAG_FULL |
349 #else | 361 #else |
350 #define FLAG FLAG_READONLY | 362 #define FLAG FLAG_READONLY |
351 #endif | 363 #endif |
(...skipping 11 matching lines...) Expand all Loading... |
363 #undef FLAG | 375 #undef FLAG |
364 | 376 |
365 #undef DEFINE_bool | 377 #undef DEFINE_bool |
366 #undef DEFINE_int | 378 #undef DEFINE_int |
367 #undef DEFINE_string | 379 #undef DEFINE_string |
368 | 380 |
369 #undef FLAG_MODE_DECLARE | 381 #undef FLAG_MODE_DECLARE |
370 #undef FLAG_MODE_DEFINE | 382 #undef FLAG_MODE_DEFINE |
371 #undef FLAG_MODE_DEFINE_DEFAULTS | 383 #undef FLAG_MODE_DEFINE_DEFAULTS |
372 #undef FLAG_MODE_META | 384 #undef FLAG_MODE_META |
OLD | NEW |