Definition at line 292 of file platform-posix.cc.
◆ TimezoneCache()
v8::base::TimezoneCache::TimezoneCache |
( |
| ) |
|
|
inline |
◆ Clear()
void v8::base::TimezoneCache::Clear |
( |
| ) |
|
|
inline |
◆ GuessTimezoneNameFromBias()
const char* v8::base::TimezoneCache::GuessTimezoneNameFromBias |
( |
int |
bias | ) |
|
|
inline |
Definition at line 176 of file platform-win32.cc.
177 static const int kHour = 60;
179 case -9*kHour:
return "Alaska";
180 case -8*kHour:
return "Pacific";
181 case -7*kHour:
return "Mountain";
182 case -6*kHour:
return "Central";
183 case -5*kHour:
return "Eastern";
184 case -4*kHour:
return "Atlantic";
185 case 0*kHour:
return "GMT";
186 case +1*kHour:
return "Central Europe";
187 case +2*kHour:
return "Eastern Europe";
188 case +3*kHour:
return "Russia";
189 case +5*kHour + 30:
return "India";
190 case +8*kHour:
return "China";
191 case +9*kHour:
return "Japan";
192 case +12*kHour:
return "New Zealand";
193 default:
return "Local";
Referenced by InitializeIfNeeded().
◆ InitializeIfNeeded()
void v8::base::TimezoneCache::InitializeIfNeeded |
( |
| ) |
|
|
inline |
Definition at line 127 of file platform-win32.cc.
135 if (GetTimeZoneInformation(&
tzinfo_) == TIME_ZONE_ID_INVALID) {
138 tzinfo_.StandardDate.wMonth = 10;
140 tzinfo_.StandardDate.wHour = 3;
142 tzinfo_.DaylightDate.wMonth = 3;
144 tzinfo_.DaylightDate.wHour = 2;
149 WideCharToMultiByte(CP_UTF8, 0,
tzinfo_.StandardName, -1,
152 WideCharToMultiByte(CP_UTF8, 0,
tzinfo_.DaylightName, -1,
static int SNPrintF(char *str, int length, const char *format,...)
char std_tz_name_[kTzNameSize]
char dst_tz_name_[kTzNameSize]
static const int kTzNameSize
const char * GuessTimezoneNameFromBias(int bias)
TIME_ZONE_INFORMATION tzinfo_
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
References dst_tz_name_, GuessTimezoneNameFromBias(), initialized_, kTzNameSize, NULL, v8::base::OS::SNPrintF(), std_tz_name_, and tzinfo_.
Referenced by v8::base::Win32Time::InDST(), and v8::base::Win32Time::LocalOffset().
◆ Win32Time
◆ dst_tz_name_
char v8::base::TimezoneCache::dst_tz_name_[kTzNameSize] |
|
private |
◆ initialized_
bool v8::base::TimezoneCache::initialized_ |
|
private |
◆ kTzNameSize
const int v8::base::TimezoneCache::kTzNameSize = 128 |
|
staticprivate |
◆ std_tz_name_
char v8::base::TimezoneCache::std_tz_name_[kTzNameSize] |
|
private |
◆ tzinfo_
TIME_ZONE_INFORMATION v8::base::TimezoneCache::tzinfo_ |
|
private |
The documentation for this class was generated from the following files: