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

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

Issue 325553002: --verify-predictable mode added for ensuring that GC behaves deterministically. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file defines all of the flags. It is separated into different section, 5 // This file defines all of the flags. It is separated into different section,
6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the 6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the
7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'. 7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'.
8 // 8 //
9 // This include does not have a guard, because it is a template-style include, 9 // This include does not have a guard, because it is a template-style include,
10 // which can be included multiple times in different modes. It expects to have 10 // which can be included multiple times in different modes. It expects to have
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 DEFINE_implication(print_all_code, print_unopt_code) 853 DEFINE_implication(print_all_code, print_unopt_code)
854 DEFINE_implication(print_all_code, print_code_verbose) 854 DEFINE_implication(print_all_code, print_code_verbose)
855 DEFINE_implication(print_all_code, print_builtin_code) 855 DEFINE_implication(print_all_code, print_builtin_code)
856 DEFINE_implication(print_all_code, print_code_stubs) 856 DEFINE_implication(print_all_code, print_code_stubs)
857 DEFINE_implication(print_all_code, code_comments) 857 DEFINE_implication(print_all_code, code_comments)
858 #ifdef DEBUG 858 #ifdef DEBUG
859 DEFINE_implication(print_all_code, trace_codegen) 859 DEFINE_implication(print_all_code, trace_codegen)
860 #endif 860 #endif
861 #endif 861 #endif
862 862
863
864 //
865 // VERIFY_PREDICTABLE related flags
866 //
867 #undef FLAG
868
869 #ifdef VERIFY_PREDICTABLE
870 #define FLAG FLAG_FULL
871 #else
872 #define FLAG FLAG_READONLY
873 #endif
874
875 DEFINE_bool(verify_predictable, false,
876 "this mode is used for checking that V8 behaves predictably")
877 DEFINE_bool(allocations_digest, false,
Hannes Payer (out of office) 2014/06/09 15:23:51 Do we need both, verify_predictable and allocation
Igor Sheludko 2014/06/10 08:22:54 Done.
878 "calculate hash over all allocations performed during program "
879 "execution")
880 DEFINE_int(dump_allocations_digest_at_alloc, 0,
881 "dump allocations digest each n-th allocation")
882 #ifdef VERIFY_PREDICTABLE
883 DEFINE_implication(verify_predictable, allocations_digest)
884 DEFINE_implication(dump_allocations_digest_at_alloc != 0, allocations_digest)
885 #endif
886
887
863 // 888 //
864 // Read-only flags 889 // Read-only flags
865 // 890 //
866 #undef FLAG 891 #undef FLAG
867 #define FLAG FLAG_READONLY 892 #define FLAG FLAG_READONLY
868 893
869 // assembler-arm.h 894 // assembler-arm.h
870 DEFINE_bool(enable_ool_constant_pool, V8_OOL_CONSTANT_POOL, 895 DEFINE_bool(enable_ool_constant_pool, V8_OOL_CONSTANT_POOL,
871 "enable use of out-of-line constant pools (ARM only)") 896 "enable use of out-of-line constant pools (ARM only)")
872 897
(...skipping 17 matching lines...) Expand all
890 #undef DEFINE_ALIAS_float 915 #undef DEFINE_ALIAS_float
891 #undef DEFINE_ALIAS_args 916 #undef DEFINE_ALIAS_args
892 917
893 #undef FLAG_MODE_DECLARE 918 #undef FLAG_MODE_DECLARE
894 #undef FLAG_MODE_DEFINE 919 #undef FLAG_MODE_DEFINE
895 #undef FLAG_MODE_DEFINE_DEFAULTS 920 #undef FLAG_MODE_DEFINE_DEFAULTS
896 #undef FLAG_MODE_META 921 #undef FLAG_MODE_META
897 #undef FLAG_MODE_DEFINE_IMPLICATIONS 922 #undef FLAG_MODE_DEFINE_IMPLICATIONS
898 923
899 #undef COMMA 924 #undef COMMA
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698