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

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

Issue 14263018: ARM: Makefile/gyp update allowing better control of ARM specific options. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Review comments Created 7 years, 8 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/arm/macro-assembler-arm.h ('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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 storage_[1] = reinterpret_cast<AtomicWord>(argv); 112 storage_[1] = reinterpret_cast<AtomicWord>(argv);
113 } 113 }
114 public: 114 public:
115 // Contains argc and argv. Unfortunately we have to store these two fields 115 // Contains argc and argv. Unfortunately we have to store these two fields
116 // into a single one to avoid making the initialization macro (which would be 116 // into a single one to avoid making the initialization macro (which would be
117 // "{ 0, NULL }") contain a coma. 117 // "{ 0, NULL }") contain a coma.
118 AtomicWord storage_[2]; 118 AtomicWord storage_[2];
119 }; 119 };
120 #endif 120 #endif
121 121
122 #if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST)
123 # define ENABLE_VFP3_DEFAULT true
124 #else
125 # define ENABLE_VFP3_DEFAULT false
126 #endif
127 #if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST)
128 # define ENABLE_ARMV7_DEFAULT true
129 #else
130 # define ENABLE_ARMV7_DEFAULT false
131 #endif
132 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST)
133 # define ENABLE_32DREGS_DEFAULT true
134 #else
135 # define ENABLE_32DREGS_DEFAULT false
136 #endif
137
122 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) 138 #define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt)
123 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt) 139 #define DEFINE_int(nam, def, cmt) FLAG(INT, int, nam, def, cmt)
124 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt) 140 #define DEFINE_float(nam, def, cmt) FLAG(FLOAT, double, nam, def, cmt)
125 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt) 141 #define DEFINE_string(nam, def, cmt) FLAG(STRING, const char*, nam, def, cmt)
126 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt) 142 #define DEFINE_args(nam, def, cmt) FLAG(ARGS, JSArguments, nam, def, cmt)
127 143
128 // 144 //
129 // Flags in all modes. 145 // Flags in all modes.
130 // 146 //
131 #define FLAG FLAG_FULL 147 #define FLAG FLAG_FULL
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 DEFINE_bool(enable_sse3, true, 317 DEFINE_bool(enable_sse3, true,
302 "enable use of SSE3 instructions if available") 318 "enable use of SSE3 instructions if available")
303 DEFINE_bool(enable_sse4_1, true, 319 DEFINE_bool(enable_sse4_1, true,
304 "enable use of SSE4.1 instructions if available") 320 "enable use of SSE4.1 instructions if available")
305 DEFINE_bool(enable_cmov, true, 321 DEFINE_bool(enable_cmov, true,
306 "enable use of CMOV instruction if available") 322 "enable use of CMOV instruction if available")
307 DEFINE_bool(enable_rdtsc, true, 323 DEFINE_bool(enable_rdtsc, true,
308 "enable use of RDTSC instruction if available") 324 "enable use of RDTSC instruction if available")
309 DEFINE_bool(enable_sahf, true, 325 DEFINE_bool(enable_sahf, true,
310 "enable use of SAHF instruction if available (X64 only)") 326 "enable use of SAHF instruction if available (X64 only)")
311 DEFINE_bool(enable_vfp3, true, 327 DEFINE_bool(enable_vfp3, ENABLE_VFP3_DEFAULT,
312 "enable use of VFP3 instructions if available") 328 "enable use of VFP3 instructions if available")
313 DEFINE_bool(enable_armv7, true, 329 DEFINE_bool(enable_armv7, ENABLE_ARMV7_DEFAULT,
314 "enable use of ARMv7 instructions if available (ARM only)") 330 "enable use of ARMv7 instructions if available (ARM only)")
315 DEFINE_bool(enable_sudiv, true, 331 DEFINE_bool(enable_sudiv, true,
316 "enable use of SDIV and UDIV instructions if available (ARM only)") 332 "enable use of SDIV and UDIV instructions if available (ARM only)")
317 DEFINE_bool(enable_movw_movt, false, 333 DEFINE_bool(enable_movw_movt, false,
318 "enable loading 32-bit constant by means of movw/movt " 334 "enable loading 32-bit constant by means of movw/movt "
319 "instruction pairs (ARM only)") 335 "instruction pairs (ARM only)")
320 DEFINE_bool(enable_unaligned_accesses, true, 336 DEFINE_bool(enable_unaligned_accesses, true,
321 "enable unaligned accesses for ARMv7 (ARM only)") 337 "enable unaligned accesses for ARMv7 (ARM only)")
322 DEFINE_bool(enable_32dregs, true, 338 DEFINE_bool(enable_32dregs, ENABLE_32DREGS_DEFAULT,
323 "enable use of d16-d31 registers on ARM - this requires VFP3") 339 "enable use of d16-d31 registers on ARM - this requires VFP3")
324 DEFINE_bool(enable_vldr_imm, false, 340 DEFINE_bool(enable_vldr_imm, false,
325 "enable use of constant pools for double immediate (ARM only)") 341 "enable use of constant pools for double immediate (ARM only)")
326 342
327 // bootstrapper.cc 343 // bootstrapper.cc
328 DEFINE_string(expose_natives_as, NULL, "expose natives in global object") 344 DEFINE_string(expose_natives_as, NULL, "expose natives in global object")
329 DEFINE_string(expose_debug_as, NULL, "expose debug in global object") 345 DEFINE_string(expose_debug_as, NULL, "expose debug in global object")
330 DEFINE_bool(expose_gc, false, "expose gc extension") 346 DEFINE_bool(expose_gc, false, "expose gc extension")
331 DEFINE_bool(expose_externalize_string, false, 347 DEFINE_bool(expose_externalize_string, false,
332 "expose externalize string extension") 348 "expose externalize string extension")
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 #undef DEFINE_bool 770 #undef DEFINE_bool
755 #undef DEFINE_int 771 #undef DEFINE_int
756 #undef DEFINE_string 772 #undef DEFINE_string
757 #undef DEFINE_implication 773 #undef DEFINE_implication
758 774
759 #undef FLAG_MODE_DECLARE 775 #undef FLAG_MODE_DECLARE
760 #undef FLAG_MODE_DEFINE 776 #undef FLAG_MODE_DEFINE
761 #undef FLAG_MODE_DEFINE_DEFAULTS 777 #undef FLAG_MODE_DEFINE_DEFAULTS
762 #undef FLAG_MODE_META 778 #undef FLAG_MODE_META
763 #undef FLAG_MODE_DEFINE_IMPLICATIONS 779 #undef FLAG_MODE_DEFINE_IMPLICATIONS
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698