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

Unified Diff: runtime/vm/cpu_arm.h

Issue 292433008: Allows unboxed doubles to be disabled. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/constants_arm.h ('k') | runtime/vm/cpu_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « runtime/vm/constants_arm.h ('k') | runtime/vm/cpu_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698