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

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

Issue 875053005: Revert of Fix --max_old_space_size=4096 integer overflow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | 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 // 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #else 144 #else
145 # define ENABLE_NEON_DEFAULT false 145 # define ENABLE_NEON_DEFAULT false
146 #endif 146 #endif
147 147
148 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) 148 #define DEFINE_BOOL(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt)
149 #define DEFINE_BOOL_READONLY(nam, def, cmt) \ 149 #define DEFINE_BOOL_READONLY(nam, def, cmt) \
150 FLAG_READONLY(BOOL, bool, nam, def, cmt) 150 FLAG_READONLY(BOOL, bool, nam, def, cmt)
151 #define DEFINE_MAYBE_BOOL(nam, cmt) \ 151 #define DEFINE_MAYBE_BOOL(nam, cmt) \
152 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt) 152 FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, {false COMMA false}, cmt)
153 #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)
154 #define DEFINE_INTPTR(nam, def, cmt) FLAG(INTPTR, intptr_t, nam, def, cmt)
155 #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)
156 #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)
157 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt) 156 #define DEFINE_ARGS(nam, cmt) FLAG(ARGS, JSArguments, nam, {0 COMMA NULL}, cmt)
158 157
159 #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)
160 #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)
161 #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)
162 #define DEFINE_ALIAS_STRING(alias, nam) \ 161 #define DEFINE_ALIAS_STRING(alias, nam) \
163 FLAG_ALIAS(STRING, const char*, alias, nam) 162 FLAG_ALIAS(STRING, const char*, alias, nam)
164 #define DEFINE_ALIAS_ARGS(alias, nam) FLAG_ALIAS(ARGS, JSArguments, alias, nam) 163 #define DEFINE_ALIAS_ARGS(alias, nam) FLAG_ALIAS(ARGS, JSArguments, alias, nam)
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 DEFINE_BOOL(trace_external_array_abuse, false, 534 DEFINE_BOOL(trace_external_array_abuse, false,
536 "trace out-of-bounds-accesses to external arrays") 535 "trace out-of-bounds-accesses to external arrays")
537 DEFINE_BOOL(trace_array_abuse, false, 536 DEFINE_BOOL(trace_array_abuse, false,
538 "trace out-of-bounds accesses to all arrays") 537 "trace out-of-bounds accesses to all arrays")
539 DEFINE_IMPLICATION(trace_array_abuse, trace_js_array_abuse) 538 DEFINE_IMPLICATION(trace_array_abuse, trace_js_array_abuse)
540 DEFINE_IMPLICATION(trace_array_abuse, trace_external_array_abuse) 539 DEFINE_IMPLICATION(trace_array_abuse, trace_external_array_abuse)
541 DEFINE_BOOL(enable_liveedit, true, "enable liveedit experimental feature") 540 DEFINE_BOOL(enable_liveedit, true, "enable liveedit experimental feature")
542 DEFINE_BOOL(hard_abort, true, "abort by crashing") 541 DEFINE_BOOL(hard_abort, true, "abort by crashing")
543 542
544 // execution.cc 543 // execution.cc
545 DEFINE_INTPTR(stack_size, V8_DEFAULT_STACK_SIZE_KB, 544 DEFINE_INT(stack_size, V8_DEFAULT_STACK_SIZE_KB,
546 "default size of stack region v8 is allowed to use (in kBytes)") 545 "default size of stack region v8 is allowed to use (in kBytes)")
547 546
548 // frames.cc 547 // frames.cc
549 DEFINE_INT(max_stack_trace_source_length, 300, 548 DEFINE_INT(max_stack_trace_source_length, 300,
550 "maximum length of function source code printed in a stack trace.") 549 "maximum length of function source code printed in a stack trace.")
551 550
552 // full-codegen.cc 551 // full-codegen.cc
553 DEFINE_BOOL(always_inline_smi_code, false, 552 DEFINE_BOOL(always_inline_smi_code, false,
554 "always inline smi code in non-opt code") 553 "always inline smi code in non-opt code")
555 554
556 // heap.cc 555 // heap.cc
557 DEFINE_INTPTR(min_semi_space_size, 0, 556 DEFINE_INT(min_semi_space_size, 0,
558 "min size of a semi-space (in MBytes), the new space consists " 557 "min size of a semi-space (in MBytes), the new space consists of two"
559 "of two semi-spaces") 558 "semi-spaces")
560 DEFINE_INTPTR(target_semi_space_size, 0, 559 DEFINE_INT(target_semi_space_size, 0,
561 "target size of a semi-space (in MBytes) before triggering a GC") 560 "target size of a semi-space (in MBytes) before triggering a GC")
562 DEFINE_INTPTR(max_semi_space_size, 0, 561 DEFINE_INT(max_semi_space_size, 0,
563 "max size of a semi-space (in MBytes), the new space consists " 562 "max size of a semi-space (in MBytes), the new space consists of two"
564 "of two semi-spaces") 563 "semi-spaces")
565 DEFINE_INT(semi_space_growth_factor, 2, "factor by which to grow the new space") 564 DEFINE_INT(semi_space_growth_factor, 2, "factor by which to grow the new space")
566 DEFINE_BOOL(experimental_new_space_growth_heuristic, false, 565 DEFINE_BOOL(experimental_new_space_growth_heuristic, false,
567 "Grow the new space based on the percentage of survivors instead " 566 "Grow the new space based on the percentage of survivors instead "
568 "of their absolute value.") 567 "of their absolute value.")
569 DEFINE_INTPTR(max_old_space_size, 0, "max size of the old space (in Mbytes)") 568 DEFINE_INT(max_old_space_size, 0, "max size of the old space (in Mbytes)")
570 DEFINE_INTPTR(initial_old_space_size, 0, "initial old space size (in Mbytes)") 569 DEFINE_INT(initial_old_space_size, 0, "initial old space size (in Mbytes)")
571 DEFINE_INTPTR(max_executable_size, 0, 570 DEFINE_INT(max_executable_size, 0, "max size of executable memory (in Mbytes)")
572 "max size of executable memory (in Mbytes)")
573 DEFINE_BOOL(gc_global, false, "always perform global GCs") 571 DEFINE_BOOL(gc_global, false, "always perform global GCs")
574 DEFINE_INT(gc_interval, -1, "garbage collect after <n> allocations") 572 DEFINE_INT(gc_interval, -1, "garbage collect after <n> allocations")
575 DEFINE_BOOL(trace_gc, false, 573 DEFINE_BOOL(trace_gc, false,
576 "print one trace line following each garbage collection") 574 "print one trace line following each garbage collection")
577 DEFINE_BOOL(trace_gc_nvp, false, 575 DEFINE_BOOL(trace_gc_nvp, false,
578 "print one detailed trace line in name=value format " 576 "print one detailed trace line in name=value format "
579 "after each garbage collection") 577 "after each garbage collection")
580 DEFINE_BOOL(trace_gc_ignore_scavenger, false, 578 DEFINE_BOOL(trace_gc_ignore_scavenger, false,
581 "do not print trace line after scavenger collection") 579 "do not print trace line after scavenger collection")
582 DEFINE_BOOL(trace_idle_notification, false, 580 DEFINE_BOOL(trace_idle_notification, false,
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 #undef DEFINE_ALIAS_FLOAT 1010 #undef DEFINE_ALIAS_FLOAT
1013 #undef DEFINE_ALIAS_ARGS 1011 #undef DEFINE_ALIAS_ARGS
1014 1012
1015 #undef FLAG_MODE_DECLARE 1013 #undef FLAG_MODE_DECLARE
1016 #undef FLAG_MODE_DEFINE 1014 #undef FLAG_MODE_DEFINE
1017 #undef FLAG_MODE_DEFINE_DEFAULTS 1015 #undef FLAG_MODE_DEFINE_DEFAULTS
1018 #undef FLAG_MODE_META 1016 #undef FLAG_MODE_META
1019 #undef FLAG_MODE_DEFINE_IMPLICATIONS 1017 #undef FLAG_MODE_DEFINE_IMPLICATIONS
1020 1018
1021 #undef COMMA 1019 #undef COMMA
OLDNEW
« no previous file with comments | « no previous file | src/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698