9 # error "V8 does not support the SPARC CPU architecture." 16 #include <semaphore.h> 19 #include <sys/regset.h> 20 #include <sys/stack.h> 30 #include "src/base/macros.h" 31 #include "src/base/platform/platform-posix.h" 32 #include "src/base/platform/platform.h" 38 const char* LocalTimezone(
double time)
override;
40 double LocalTimeOffset(
double time,
bool is_utc)
override;
44 const char* SolarisTimezoneCache::LocalTimezone(
double time) {
45 if (std::isnan(time))
return "";
46 time_t tv =
static_cast<time_t
>(std::floor(time/msPerSecond));
48 struct tm* t = localtime_r(&tv, &tm);
49 if (
nullptr == t)
return "";
53 double SolarisTimezoneCache::LocalTimeOffset(
double time,
bool is_utc) {
55 return -
static_cast<double>(timezone * msPerSecond);
58 TimezoneCache* OS::CreateTimezoneCache() {
return new SolarisTimezoneCache(); }
60 std::vector<OS::SharedLibraryAddress> OS::GetSharedLibraryAddresses() {
61 return std::vector<SharedLibraryAddress>();
64 void OS::SignalCodeMovingGC() {}