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

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

Issue 678313002: Add ARMv8 detection in CpuFeatures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/assembler-arm.cc ('k') | src/globals.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 // 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE) 107 #if (defined CAN_USE_VFP3_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE)
108 #define ENABLE_VFP3_DEFAULT true 108 #define ENABLE_VFP3_DEFAULT true
109 #else 109 #else
110 #define ENABLE_VFP3_DEFAULT false 110 #define ENABLE_VFP3_DEFAULT false
111 #endif 111 #endif
112 #if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE) 112 #if (defined CAN_USE_ARMV7_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE)
113 #define ENABLE_ARMV7_DEFAULT true 113 #define ENABLE_ARMV7_DEFAULT true
114 #else 114 #else
115 #define ENABLE_ARMV7_DEFAULT false 115 #define ENABLE_ARMV7_DEFAULT false
116 #endif 116 #endif
117 #if (defined CAN_USE_ARMV8_INSTRUCTIONS) || !(defined ARM_TEST_NO_FEATURE_PROBE)
118 #define ENABLE_ARMV8_DEFAULT true
119 #else
120 #define ENABLE_ARMV8_DEFAULT false
121 #endif
117 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST_NO_FEATURE_PROBE) 122 #if (defined CAN_USE_VFP32DREGS) || !(defined ARM_TEST_NO_FEATURE_PROBE)
118 #define ENABLE_32DREGS_DEFAULT true 123 #define ENABLE_32DREGS_DEFAULT true
119 #else 124 #else
120 #define ENABLE_32DREGS_DEFAULT false 125 #define ENABLE_32DREGS_DEFAULT false
121 #endif 126 #endif
122 #if (defined CAN_USE_NEON) || !(defined ARM_TEST_NO_FEATURE_PROBE) 127 #if (defined CAN_USE_NEON) || !(defined ARM_TEST_NO_FEATURE_PROBE)
123 # define ENABLE_NEON_DEFAULT true 128 # define ENABLE_NEON_DEFAULT true
124 #else 129 #else
125 # define ENABLE_NEON_DEFAULT false 130 # define ENABLE_NEON_DEFAULT false
126 #endif 131 #endif
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 DEFINE_BOOL(code_comments, false, "emit comments in code disassembly") 399 DEFINE_BOOL(code_comments, false, "emit comments in code disassembly")
395 DEFINE_BOOL(enable_sse3, true, "enable use of SSE3 instructions if available") 400 DEFINE_BOOL(enable_sse3, true, "enable use of SSE3 instructions if available")
396 DEFINE_BOOL(enable_sse4_1, true, 401 DEFINE_BOOL(enable_sse4_1, true,
397 "enable use of SSE4.1 instructions if available") 402 "enable use of SSE4.1 instructions if available")
398 DEFINE_BOOL(enable_sahf, true, 403 DEFINE_BOOL(enable_sahf, true,
399 "enable use of SAHF instruction if available (X64 only)") 404 "enable use of SAHF instruction if available (X64 only)")
400 DEFINE_BOOL(enable_vfp3, ENABLE_VFP3_DEFAULT, 405 DEFINE_BOOL(enable_vfp3, ENABLE_VFP3_DEFAULT,
401 "enable use of VFP3 instructions if available") 406 "enable use of VFP3 instructions if available")
402 DEFINE_BOOL(enable_armv7, ENABLE_ARMV7_DEFAULT, 407 DEFINE_BOOL(enable_armv7, ENABLE_ARMV7_DEFAULT,
403 "enable use of ARMv7 instructions if available (ARM only)") 408 "enable use of ARMv7 instructions if available (ARM only)")
409 DEFINE_BOOL(enable_armv8, ENABLE_ARMV8_DEFAULT,
410 "enable use of ARMv8 instructions if available (ARM 32-bit only)")
404 DEFINE_BOOL(enable_neon, ENABLE_NEON_DEFAULT, 411 DEFINE_BOOL(enable_neon, ENABLE_NEON_DEFAULT,
405 "enable use of NEON instructions if available (ARM only)") 412 "enable use of NEON instructions if available (ARM only)")
406 DEFINE_BOOL(enable_sudiv, true, 413 DEFINE_BOOL(enable_sudiv, true,
407 "enable use of SDIV and UDIV instructions if available (ARM only)") 414 "enable use of SDIV and UDIV instructions if available (ARM only)")
408 DEFINE_BOOL(enable_mls, true, 415 DEFINE_BOOL(enable_mls, true,
409 "enable use of MLS instructions if available (ARM only)") 416 "enable use of MLS instructions if available (ARM only)")
410 DEFINE_BOOL(enable_movw_movt, false, 417 DEFINE_BOOL(enable_movw_movt, false,
411 "enable loading 32-bit constant by means of movw/movt " 418 "enable loading 32-bit constant by means of movw/movt "
412 "instruction pairs (ARM only)") 419 "instruction pairs (ARM only)")
413 DEFINE_BOOL(enable_unaligned_accesses, true, 420 DEFINE_BOOL(enable_unaligned_accesses, true,
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 #undef DEFINE_ALIAS_FLOAT 958 #undef DEFINE_ALIAS_FLOAT
952 #undef DEFINE_ALIAS_ARGS 959 #undef DEFINE_ALIAS_ARGS
953 960
954 #undef FLAG_MODE_DECLARE 961 #undef FLAG_MODE_DECLARE
955 #undef FLAG_MODE_DEFINE 962 #undef FLAG_MODE_DEFINE
956 #undef FLAG_MODE_DEFINE_DEFAULTS 963 #undef FLAG_MODE_DEFINE_DEFAULTS
957 #undef FLAG_MODE_META 964 #undef FLAG_MODE_META
958 #undef FLAG_MODE_DEFINE_IMPLICATIONS 965 #undef FLAG_MODE_DEFINE_IMPLICATIONS
959 966
960 #undef COMMA 967 #undef COMMA
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698