Changeset View
Changeset View
Standalone View
Standalone View
www/node/files/patch-deps_v8_src_base_platform_platform-freebsd.cc
--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2017-06-15 11:55:21 UTC | --- deps/v8/src/base/platform/platform-freebsd.cc.orig 2017-08-09 18:48:10 UTC | ||||
+++ deps/v8/src/base/platform/platform-freebsd.cc | +++ deps/v8/src/base/platform/platform-freebsd.cc | ||||
@@ -35,6 +35,48 @@ | @@ -48,6 +48,48 @@ void* OS::Allocate(const size_t requested, size_t* all | ||||
namespace v8 { | return mbase; | ||||
namespace base { | } | ||||
+#ifdef __arm__ | +#ifdef __arm__ | ||||
+ | + | ||||
+bool OS::ArmUsingHardFloat() { | +bool OS::ArmUsingHardFloat() { | ||||
+ // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify | + // GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify | ||||
+ // the Floating Point ABI used (PCS stands for Procedure Call Standard). | + // the Floating Point ABI used (PCS stands for Procedure Call Standard). | ||||
+ // We use these as well as a couple of other defines to statically determine | + // We use these as well as a couple of other defines to statically determine | ||||
+ // what FP ABI used. | + // what FP ABI used. | ||||
Show All 28 Lines | |||||
+#endif | +#endif | ||||
+#endif | +#endif | ||||
+#undef GCC_VERSION | +#undef GCC_VERSION | ||||
+} | +} | ||||
+ | + | ||||
+#endif // def __arm__ | +#endif // def __arm__ | ||||
+ | + | ||||
const char* OS::LocalTimezone(double time, TimezoneCache* cache) { | static unsigned StringToLong(char* buffer) { | ||||
if (std::isnan(time)) return ""; | return static_cast<unsigned>(strtol(buffer, NULL, 16)); // NOLINT |