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

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: Change to using Maybe<bool> flags. 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') | src/flags.cc » ('J')
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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 DEFINE_bool(preallocate_message_memory, false, 596 DEFINE_bool(preallocate_message_memory, false,
595 "preallocate some memory to build stack traces.") 597 "preallocate some memory to build stack traces.")
596 DEFINE_bool(randomize_hashes, 598 DEFINE_bool(randomize_hashes,
597 true, 599 true,
598 "randomize hashes to avoid predictable hash collisions " 600 "randomize hashes to avoid predictable hash collisions "
599 "(with snapshots this option cannot override the baked-in seed)") 601 "(with snapshots this option cannot override the baked-in seed)")
600 DEFINE_int(hash_seed, 602 DEFINE_int(hash_seed,
601 0, 603 0,
602 "Fixed seed to use to hash property keys (0 means random)" 604 "Fixed seed to use to hash property keys (0 means random)"
603 "(with snapshots this option cannot override the baked-in seed)") 605 "(with snapshots this option cannot override the baked-in seed)")
606 DEFINE_maybe_bool(force_memory_constrained,
607 "force (if true) or prevent (if false) the runtime from treating "
608 "the device as being memory constrained.")
604 609
605 // v8.cc 610 // v8.cc
606 DEFINE_bool(preemption, false, 611 DEFINE_bool(preemption, false,
607 "activate a 100ms timer that switches between V8 threads") 612 "activate a 100ms timer that switches between V8 threads")
608 613
609 // Regexp 614 // Regexp
610 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") 615 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code")
611 616
612 // Testing flags test/cctest/test-{flags,api,serialization}.cc 617 // Testing flags test/cctest/test-{flags,api,serialization}.cc
613 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") 618 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag")
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 #endif 833 #endif
829 #endif 834 #endif
830 835
831 // Cleanup... 836 // Cleanup...
832 #undef FLAG_FULL 837 #undef FLAG_FULL
833 #undef FLAG_READONLY 838 #undef FLAG_READONLY
834 #undef FLAG 839 #undef FLAG
835 #undef FLAG_ALIAS 840 #undef FLAG_ALIAS
836 841
837 #undef DEFINE_bool 842 #undef DEFINE_bool
843 #undef DEFINE_maybe_bool
838 #undef DEFINE_int 844 #undef DEFINE_int
839 #undef DEFINE_string 845 #undef DEFINE_string
840 #undef DEFINE_float 846 #undef DEFINE_float
841 #undef DEFINE_args 847 #undef DEFINE_args
842 #undef DEFINE_implication 848 #undef DEFINE_implication
843 #undef DEFINE_ALIAS_bool 849 #undef DEFINE_ALIAS_bool
844 #undef DEFINE_ALIAS_int 850 #undef DEFINE_ALIAS_int
845 #undef DEFINE_ALIAS_string 851 #undef DEFINE_ALIAS_string
846 #undef DEFINE_ALIAS_float 852 #undef DEFINE_ALIAS_float
847 #undef DEFINE_ALIAS_args 853 #undef DEFINE_ALIAS_args
848 854
849 #undef FLAG_MODE_DECLARE 855 #undef FLAG_MODE_DECLARE
850 #undef FLAG_MODE_DEFINE 856 #undef FLAG_MODE_DEFINE
851 #undef FLAG_MODE_DEFINE_DEFAULTS 857 #undef FLAG_MODE_DEFINE_DEFAULTS
852 #undef FLAG_MODE_META 858 #undef FLAG_MODE_META
853 #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') | src/flags.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698