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

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: 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
« include/v8.h ('K') | « 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(Os, false, "Optimize for size. Enables optimizations which reduce "
Hannes Payer (out of office) 2013/09/23 11:38:43 I just talked to danno: --optimize-for-size is a b
rmcilroy 2013/09/23 12:40:15 Done.
227 "generated code size.")
228
225 // Flags for data representation optimizations 229 // Flags for data representation optimizations
226 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles") 230 DEFINE_bool(unbox_double_arrays, true, "automatically unbox arrays of doubles")
227 DEFINE_bool(string_slices, true, "use string slices") 231 DEFINE_bool(string_slices, true, "use string slices")
228 232
229 // Flags for Crankshaft. 233 // Flags for Crankshaft.
230 DEFINE_bool(crankshaft, true, "use crankshaft") 234 DEFINE_bool(crankshaft, true, "use crankshaft")
231 DEFINE_string(hydrogen_filter, "*", "optimization filter") 235 DEFINE_string(hydrogen_filter, "*", "optimization filter")
232 DEFINE_bool(use_range, true, "use hydrogen range analysis") 236 DEFINE_bool(use_range, true, "use hydrogen range analysis")
233 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering") 237 DEFINE_bool(use_gvn, true, "use hydrogen global value numbering")
234 DEFINE_bool(use_canonicalizing, true, "use hydrogen instruction canonicalizing") 238 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, 591 DEFINE_bool(preallocate_message_memory, false,
588 "preallocate some memory to build stack traces.") 592 "preallocate some memory to build stack traces.")
589 DEFINE_bool(randomize_hashes, 593 DEFINE_bool(randomize_hashes,
590 true, 594 true,
591 "randomize hashes to avoid predictable hash collisions " 595 "randomize hashes to avoid predictable hash collisions "
592 "(with snapshots this option cannot override the baked-in seed)") 596 "(with snapshots this option cannot override the baked-in seed)")
593 DEFINE_int(hash_seed, 597 DEFINE_int(hash_seed,
594 0, 598 0,
595 "Fixed seed to use to hash property keys (0 means random)" 599 "Fixed seed to use to hash property keys (0 means random)"
596 "(with snapshots this option cannot override the baked-in seed)") 600 "(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 601
601 // v8.cc 602 // v8.cc
602 DEFINE_bool(preemption, false, 603 DEFINE_bool(preemption, false,
603 "activate a 100ms timer that switches between V8 threads") 604 "activate a 100ms timer that switches between V8 threads")
604 605
605 // Regexp 606 // Regexp
606 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code") 607 DEFINE_bool(regexp_optimization, true, "generate optimized regexp code")
607 608
608 // Testing flags test/cctest/test-{flags,api,serialization}.cc 609 // Testing flags test/cctest/test-{flags,api,serialization}.cc
609 DEFINE_bool(testing_bool_flag, true, "testing_bool_flag") 610 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 845 #undef DEFINE_ALIAS_float
845 #undef DEFINE_ALIAS_args 846 #undef DEFINE_ALIAS_args
846 847
847 #undef FLAG_MODE_DECLARE 848 #undef FLAG_MODE_DECLARE
848 #undef FLAG_MODE_DEFINE 849 #undef FLAG_MODE_DEFINE
849 #undef FLAG_MODE_DEFINE_DEFAULTS 850 #undef FLAG_MODE_DEFINE_DEFAULTS
850 #undef FLAG_MODE_META 851 #undef FLAG_MODE_META
851 #undef FLAG_MODE_DEFINE_IMPLICATIONS 852 #undef FLAG_MODE_DEFINE_IMPLICATIONS
852 853
853 #undef COMMA 854 #undef COMMA
OLDNEW
« include/v8.h ('K') | « src/api.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698