2009-09-14 Gabor Loki <loki@inf.u-szeged.hu>
Reviewed by Gavin Barraclough.
Detect VFP at runtime in generic ARM port on Linux platform.
https://bugs.webkit.org/show_bug.cgi?id=29076
* JavaScriptCore.pri:
* assembler/MacroAssemblerARM.cpp: Added.
(JSC::isVFPPresent):
* assembler/MacroAssemblerARM.h:
(JSC::MacroAssemblerARM::supportsFloatingPoint):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48389 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/assembler/MacroAssemblerARM.h b/JavaScriptCore/assembler/MacroAssemblerARM.h
index 1a4290d..4a7c10a 100644
--- a/JavaScriptCore/assembler/MacroAssemblerARM.h
+++ b/JavaScriptCore/assembler/MacroAssemblerARM.h
@@ -30,7 +30,7 @@
#include <wtf/Platform.h>
-#if ENABLE(ASSEMBLER) && PLATFORM(ARM)
+#if ENABLE(ASSEMBLER) && PLATFORM(ARM) && !PLATFORM_ARM_ARCH(7)
#include "ARMAssembler.h"
#include "AbstractMacroAssembler.h"
@@ -637,8 +637,7 @@
// Floating point operators
bool supportsFloatingPoint() const
{
- // FIXME: should be a dynamic test: VFP, FPA, or nothing
- return false;
+ return s_isVFPPresent;
}
bool supportsFloatingPointTruncate() const
@@ -793,10 +792,11 @@
ARMAssembler::relinkCall(call.dataLocation(), destination.executableAddress());
}
+ static const bool s_isVFPPresent;
};
}
-#endif
+#endif // ENABLE(ASSEMBLER) && PLATFORM(ARM) && !PLATFORM_ARM_ARCH(7)
#endif // MacroAssemblerARM_h