| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // Regexp | 445 // Regexp |
| 446 DEFINE_bool(regexp_possessive_quantifier, | 446 DEFINE_bool(regexp_possessive_quantifier, |
| 447 false, | 447 false, |
| 448 "enable possessive quantifier syntax for testing") | 448 "enable possessive quantifier syntax for testing") |
| 449 DEFINE_bool(trace_regexp_bytecodes, false, "trace regexp bytecode execution") | 449 DEFINE_bool(trace_regexp_bytecodes, false, "trace regexp bytecode execution") |
| 450 DEFINE_bool(trace_regexp_assembler, | 450 DEFINE_bool(trace_regexp_assembler, |
| 451 false, | 451 false, |
| 452 "trace regexp macro assembler calls.") | 452 "trace regexp macro assembler calls.") |
| 453 | 453 |
| 454 // | 454 // |
| 455 // Logging and profiling only flags | 455 // Logging and profiling flags |
| 456 // | 456 // |
| 457 #undef FLAG | 457 #undef FLAG |
| 458 #ifdef ENABLE_LOGGING_AND_PROFILING | |
| 459 #define FLAG FLAG_FULL | 458 #define FLAG FLAG_FULL |
| 460 #else | |
| 461 #define FLAG FLAG_READONLY | |
| 462 #endif | |
| 463 | 459 |
| 464 // log.cc | 460 // log.cc |
| 465 DEFINE_bool(log, false, | 461 DEFINE_bool(log, false, |
| 466 "Minimal logging (no API, code, GC, suspect, or handles samples).") | 462 "Minimal logging (no API, code, GC, suspect, or handles samples).") |
| 467 DEFINE_bool(log_all, false, "Log all events to the log file.") | 463 DEFINE_bool(log_all, false, "Log all events to the log file.") |
| 468 DEFINE_bool(log_runtime, false, "Activate runtime system %Log call.") | 464 DEFINE_bool(log_runtime, false, "Activate runtime system %Log call.") |
| 469 DEFINE_bool(log_api, false, "Log API events to the log file.") | 465 DEFINE_bool(log_api, false, "Log API events to the log file.") |
| 470 DEFINE_bool(log_code, false, | 466 DEFINE_bool(log_code, false, |
| 471 "Log code events to the log file without profiling.") | 467 "Log code events to the log file without profiling.") |
| 472 DEFINE_bool(log_gc, false, | 468 DEFINE_bool(log_gc, false, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 484 " when profiler is active (implies --noprof_auto).") | 480 " when profiler is active (implies --noprof_auto).") |
| 485 DEFINE_bool(prof_browser_mode, true, | 481 DEFINE_bool(prof_browser_mode, true, |
| 486 "Used with --prof, turns on browser-compatible mode for profiling.") | 482 "Used with --prof, turns on browser-compatible mode for profiling.") |
| 487 DEFINE_bool(log_regexp, false, "Log regular expression execution.") | 483 DEFINE_bool(log_regexp, false, "Log regular expression execution.") |
| 488 DEFINE_bool(sliding_state_window, false, | 484 DEFINE_bool(sliding_state_window, false, |
| 489 "Update sliding state window counters.") | 485 "Update sliding state window counters.") |
| 490 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") | 486 DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") |
| 491 DEFINE_bool(ll_prof, false, "Enable low-level linux profiler.") | 487 DEFINE_bool(ll_prof, false, "Enable low-level linux profiler.") |
| 492 | 488 |
| 493 // | 489 // |
| 494 // Heap protection flags | |
| 495 // Using heap protection requires ENABLE_LOGGING_AND_PROFILING as well. | |
| 496 // | |
| 497 #ifdef ENABLE_HEAP_PROTECTION | |
| 498 #undef FLAG | |
| 499 #define FLAG FLAG_FULL | |
| 500 | |
| 501 DEFINE_bool(protect_heap, false, | |
| 502 "Protect/unprotect V8's heap when leaving/entring the VM.") | |
| 503 | |
| 504 #endif | |
| 505 | |
| 506 // | |
| 507 // Disassembler only flags | 490 // Disassembler only flags |
| 508 // | 491 // |
| 509 #undef FLAG | 492 #undef FLAG |
| 510 #ifdef ENABLE_DISASSEMBLER | 493 #ifdef ENABLE_DISASSEMBLER |
| 511 #define FLAG FLAG_FULL | 494 #define FLAG FLAG_FULL |
| 512 #else | 495 #else |
| 513 #define FLAG FLAG_READONLY | 496 #define FLAG FLAG_READONLY |
| 514 #endif | 497 #endif |
| 515 | 498 |
| 516 // code-stubs.cc | 499 // code-stubs.cc |
| (...skipping 13 matching lines...) Expand all Loading... |
| 530 #undef FLAG | 513 #undef FLAG |
| 531 | 514 |
| 532 #undef DEFINE_bool | 515 #undef DEFINE_bool |
| 533 #undef DEFINE_int | 516 #undef DEFINE_int |
| 534 #undef DEFINE_string | 517 #undef DEFINE_string |
| 535 | 518 |
| 536 #undef FLAG_MODE_DECLARE | 519 #undef FLAG_MODE_DECLARE |
| 537 #undef FLAG_MODE_DEFINE | 520 #undef FLAG_MODE_DEFINE |
| 538 #undef FLAG_MODE_DEFINE_DEFAULTS | 521 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 539 #undef FLAG_MODE_META | 522 #undef FLAG_MODE_META |
| OLD | NEW |