Index: runtime/vm/cpu_arm.h |
=================================================================== |
--- runtime/vm/cpu_arm.h (revision 36258) |
+++ runtime/vm/cpu_arm.h (working copy) |
@@ -19,6 +19,7 @@ |
// they may be altered for testing. |
enum ARMVersion { |
+ ARMv5TE, |
ARMv6, |
ARMv7, |
ARMvUnknown, |
@@ -36,6 +37,10 @@ |
DEBUG_ASSERT(initialized_); |
return integer_division_supported_; |
} |
+ static bool vfp_supported() { |
+ DEBUG_ASSERT(initialized_); |
+ return vfp_supported_; |
+ } |
static bool neon_supported() { |
DEBUG_ASSERT(initialized_); |
return neon_supported_; |
@@ -50,6 +55,10 @@ |
DEBUG_ASSERT(initialized_); |
integer_division_supported_ = supported; |
} |
+ static void set_vfp_supported(bool supported) { |
+ DEBUG_ASSERT(initialized_); |
+ vfp_supported_ = supported; |
+ } |
static void set_neon_supported(bool supported) { |
DEBUG_ASSERT(initialized_); |
neon_supported_ = supported; |
@@ -63,6 +72,7 @@ |
private: |
static const char* hardware_; |
static bool integer_division_supported_; |
+ static bool vfp_supported_; |
static bool neon_supported_; |
static ARMVersion arm_version_; |
#if defined(DEBUG) |
@@ -84,6 +94,9 @@ |
static bool integer_division_supported() { |
return HostCPUFeatures::integer_division_supported(); |
} |
+ static bool vfp_supported() { |
+ return HostCPUFeatures::vfp_supported(); |
+ } |
static bool neon_supported() { |
return HostCPUFeatures::neon_supported(); |
} |