mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:49:43 +00:00
[vm, compiler] Decide how many Q registers are available based on target OS.
TEST=ci Change-Id: Ieefb6d56a4110a9277c5f217a800c3297de8964e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/238383 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
parent
70dd0044dd
commit
6d41f47d45
|
@ -35,16 +35,12 @@ namespace dart {
|
|||
|
||||
// We support both VFPv3-D16 and VFPv3-D32 profiles, but currently only one at
|
||||
// a time.
|
||||
#if defined(__ARM_ARCH_7A__)
|
||||
#define VFPv3_D32
|
||||
#elif defined(TARGET_ARCH_ARM) && !defined(HOST_ARCH_ARM)
|
||||
// If we're running in the simulator, use all 32.
|
||||
#if defined(DART_TARGET_OS_ANDROID) || defined(DART_TARGET_OS_LINUX)
|
||||
#define VFPv3_D16
|
||||
#elif defined(DART_TARGET_OS_MACOS_IOS) || defined(DART_TARGET_OS_WINDOWS)
|
||||
#define VFPv3_D32
|
||||
#else
|
||||
#define VFPv3_D16
|
||||
#endif
|
||||
#if defined(VFPv3_D16) == defined(VFPv3_D32)
|
||||
#error "Exactly one of VFPv3_D16 or VFPv3_D32 can be defined at a time."
|
||||
#error Which VFP?
|
||||
#endif
|
||||
|
||||
// The Linux/Android ABI and the iOS ABI differ in their choice of frame
|
||||
|
|
Loading…
Reference in a new issue