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

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

Issue 24018009: Add -optimize-for-size flag to optimize for memory size (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: change to optimize-for-size 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/isolate.h » ('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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 DEFINE_bool(pretenuring_call_new, false, "pretenure call new") 215 DEFINE_bool(pretenuring_call_new, false, "pretenure call new")
216 DEFINE_bool(track_fields, true, "track fields with only smi values") 216 DEFINE_bool(track_fields, true, "track fields with only smi values")
217 DEFINE_bool(track_double_fields, true, "track fields with double values") 217 DEFINE_bool(track_double_fields, true, "track fields with double values")
218 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values") 218 DEFINE_bool(track_heap_object_fields, true, "track fields with heap values")
219 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields") 219 DEFINE_bool(track_computed_fields, true, "track computed boilerplate fields")
220 DEFINE_implication(track_double_fields, track_fields) 220 DEFINE_implication(track_double_fields, track_fields)
221 DEFINE_implication(track_heap_object_fields, track_fields) 221 DEFINE_implication(track_heap_object_fields, track_fields)
222 DEFINE_implication(track_computed_fields, track_fields) 222 DEFINE_implication(track_computed_fields, track_fields)
223 DEFINE_bool(smi_binop, true, "support smi representation in binary operations") 223 DEFINE_bool(smi_binop, true, "support smi representation in binary operations")
224 224
225 // Flags for optimization types.
226 DEFINE_bool(optimize_for_size, false,
227 "Enables optimizations which favor memory size over execution "
228 "speed.")
229
225 // Flags for data representation optimizations 230 // Flags for data representation optimizations
226 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") 231 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles")
227 DEFINE_bool(string_slices, true, "use string slices") 232 DEFINE_bool(string_slices, true, "use string slices")
228 233
229 // Flags for Crankshaft. 234 // Flags for Crankshaft.
230 DEFINE_bool(crankshaft, true, "use crankshaft") 235 DEFINE_bool(crankshaft, true, "use crankshaft")
231 DEFINE_string(hydrogen_filter, "*", "optimization filter") 236 DEFINE_string(hydrogen_filter, "*", "optimization filter")
232 DEFINE_bool(use_range, true, "use hydrogen range analysis") 237 DEFINE_bool(use_range, true, "use hydrogen range analysis")
233 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") 238 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering")
234 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") 239 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing")
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 DEFINE_bool(preallocate_message_memory, false, 592 DEFINE_bool(preallocate_message_memory, false,
588 "preallocate some memory to build stack traces.") 593 "preallocate some memory to build stack traces.")
589 DEFINE_bool(randomize_hashes, 594 DEFINE_bool(randomize_hashes,
590 true, 595 true,
591 "randomize hashes to avoid predictable hash collisions " 596 "randomize hashes to avoid predictable hash collisions "
592 "(with snapshots this option cannot override the baked-in seed)") 597 "(with snapshots this option cannot override the baked-in seed)")
593 DEFINE_int(hash_seed, 598 DEFINE_int(hash_seed,
594 0, 599 0,
595 "Fixed seed to use to hash property keys (0 means random)" 600 "Fixed seed to use to hash property keys (0 means random)"
596 "(with snapshots this option cannot override the baked-in seed)") 601 "(with snapshots this option cannot override the baked-in seed)")
597 DEFINE_maybe_bool(force_memory_constrained,
598 "force (if true) or prevent (if false) the runtime from treating "
599 "the device as being memory constrained.")
600 602
601 // v8.cc 603 // v8.cc
602 DEFINE_bool(preemption, false, 604 DEFINE_bool(preemption, false,
603 "activate a 100ms timer that switches between V8 threads") 605 "activate a 100ms timer that switches between V8 threads")
604 606
605 // Regexp 607 // Regexp
606 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") 608 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code")
607 609
608 // Testing flags test/cctest/test-{flags,api,serialization}.cc 610 // Testing flags test/cctest/test-{flags,api,serialization}.cc
609 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") 611 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag")
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 #undef DEFINE_ALIAS_float 846 #undef DEFINE_ALIAS_float
845 #undef DEFINE_ALIAS_args 847 #undef DEFINE_ALIAS_args
846 848
847 #undef FLAG_MODE_DECLARE 849 #undef FLAG_MODE_DECLARE
848 #undef FLAG_MODE_DEFINE 850 #undef FLAG_MODE_DEFINE
849 #undef FLAG_MODE_DEFINE_DEFAULTS 851 #undef FLAG_MODE_DEFINE_DEFAULTS
850 #undef FLAG_MODE_META 852 #undef FLAG_MODE_META
851 #undef FLAG_MODE_DEFINE_IMPLICATIONS 853 #undef FLAG_MODE_DEFINE_IMPLICATIONS
852 854
853 #undef COMMA 855 #undef COMMA
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698