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

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

Issue 23890027: Add flags to force or prevent setting of isolate.is_memory_constrained. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix dumb typo in ASSERT and add tests to test-flags.cc Created 7 years, 3 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
« no previous file with comments | « src/api.cc ('k') | src/flags.cc » ('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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 #else 141 #else
142 # define ENABLE_ARMV7_DEFAULT false 142 # define ENABLE_ARMV7_DEFAULT false
143 #endif 143 #endif
144 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST) 144 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST)
145 # define ENABLE_32DREGS_DEFAULT true 145 # define ENABLE_32DREGS_DEFAULT true
146 #else 146 #else
147 # define ENABLE_32DREGS_DEFAULT false 147 # define ENABLE_32DREGS_DEFAULT false
148 #endif 148 #endif
149 149
150 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) 150 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt)
151 #define DEFINE_maybe_bool(nam, cmt) FLAG(MAYBE_BOOL, Maybe<bool>, nam, \
152 Maybe<bool>(), cmt)
151 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) 153 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt)
152 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) 154 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt)
153 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) 155 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt)
154 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) 156 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt)
155 157
156 #define DEFINE_ALIAS_bool(alias, nam) FLAG_ALIAS(BOOL, bool, alias, nam) 158 #define DEFINE_ALIAS_bool(alias, nam) FLAG_ALIAS(BOOL, bool, alias, nam)
157 #define DEFINE_ALIAS_int(alias, nam) FLAG_ALIAS(INT, int, alias, nam) 159 #define DEFINE_ALIAS_int(alias, nam) FLAG_ALIAS(INT, int, alias, nam)
158 #define DEFINE_ALIAS_float(alias, nam) FLAG_ALIAS(FLOAT, double, alias, nam) 160 #define DEFINE_ALIAS_float(alias, nam) FLAG_ALIAS(FLOAT, double, alias, nam)
159 #define DEFINE_ALIAS_string(alias, nam) \ 161 #define DEFINE_ALIAS_string(alias, nam) \
160 FLAG_ALIAS(STRING, const char*, alias, nam) 162 FLAG_ALIAS(STRING, const char*, alias, nam)
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 DEFINE_bool(preallocate_message_memory, false, 595 DEFINE_bool(preallocate_message_memory, false,
594 "preallocate some memory to build stack traces.") 596 "preallocate some memory to build stack traces.")
595 DEFINE_bool(randomize_hashes, 597 DEFINE_bool(randomize_hashes,
596 true, 598 true,
597 "randomize hashes to avoid predictable hash collisions " 599 "randomize hashes to avoid predictable hash collisions "
598 "(with snapshots this option cannot override the baked-in seed)") 600 "(with snapshots this option cannot override the baked-in seed)")
599 DEFINE_int(hash_seed, 601 DEFINE_int(hash_seed,
600 0, 602 0,
601 "Fixed seed to use to hash property keys (0 means random)" 603 "Fixed seed to use to hash property keys (0 means random)"
602 "(with snapshots this option cannot override the baked-in seed)") 604 "(with snapshots this option cannot override the baked-in seed)")
605 DEFINE_maybe_bool(force_memory_constrained,
606 "force (if true) or prevent (if false) the runtime from treating "
607 "the device as being memory constrained.")
603 608
604 // v8.cc 609 // v8.cc
605 DEFINE_bool(preemption, false, 610 DEFINE_bool(preemption, false,
606 "activate a 100ms timer that switches between V8 threads") 611 "activate a 100ms timer that switches between V8 threads")
607 612
608 // Regexp 613 // Regexp
609 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") 614 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code")
610 615
611 // Testing flags test/cctest/test-{flags,api,serialization}.cc 616 // Testing flags test/cctest/test-{flags,api,serialization}.cc
612 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") 617 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag")
618 DEFINE_maybe_bool(testing_maybe_bool_flag, "testing_maybe_bool_flag")
613 DEFINE_int(testing_int_flag, 13, "testing_int_flag") 619 DEFINE_int(testing_int_flag, 13, "testing_int_flag")
614 DEFINE_float(testing_float_flag, 2.5, "float-flag") 620 DEFINE_float(testing_float_flag, 2.5, "float-flag")
615 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag") 621 DEFINE_string(testing_string_flag, "Hello, world!", "string-flag")
616 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness") 622 DEFINE_int(testing_prng_seed, 42, "Seed used for threading test randomness")
617 #ifdef _WIN32 623 #ifdef _WIN32
618 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes", 624 DEFINE_string(testing_serialization_file, "C:\\Windows\\Temp\\serdes",
619 "file in which to testing_serialize heap") 625 "file in which to testing_serialize heap")
620 #else 626 #else
621 DEFINE_string(testing_serialization_file, "/tmp/serdes", 627 DEFINE_string(testing_serialization_file, "/tmp/serdes",
622 "file in which to serialize heap") 628 "file in which to serialize heap")
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 #endif 833 #endif
828 #endif 834 #endif
829 835
830 // Cleanup... 836 // Cleanup...
831 #undef FLAG_FULL 837 #undef FLAG_FULL
832 #undef FLAG_READONLY 838 #undef FLAG_READONLY
833 #undef FLAG 839 #undef FLAG
834 #undef FLAG_ALIAS 840 #undef FLAG_ALIAS
835 841
836 #undef DEFINE_bool 842 #undef DEFINE_bool
843 #undef DEFINE_maybe_bool
837 #undef DEFINE_int 844 #undef DEFINE_int
838 #undef DEFINE_string 845 #undef DEFINE_string
839 #undef DEFINE_float 846 #undef DEFINE_float
840 #undef DEFINE_args 847 #undef DEFINE_args
841 #undef DEFINE_implication 848 #undef DEFINE_implication
842 #undef DEFINE_ALIAS_bool 849 #undef DEFINE_ALIAS_bool
843 #undef DEFINE_ALIAS_int 850 #undef DEFINE_ALIAS_int
844 #undef DEFINE_ALIAS_string 851 #undef DEFINE_ALIAS_string
845 #undef DEFINE_ALIAS_float 852 #undef DEFINE_ALIAS_float
846 #undef DEFINE_ALIAS_args 853 #undef DEFINE_ALIAS_args
847 854
848 #undef FLAG_MODE_DECLARE 855 #undef FLAG_MODE_DECLARE
849 #undef FLAG_MODE_DEFINE 856 #undef FLAG_MODE_DEFINE
850 #undef FLAG_MODE_DEFINE_DEFAULTS 857 #undef FLAG_MODE_DEFINE_DEFAULTS
851 #undef FLAG_MODE_META 858 #undef FLAG_MODE_META
852 #undef FLAG_MODE_DEFINE_IMPLICATIONS 859 #undef FLAG_MODE_DEFINE_IMPLICATIONS
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698