25 static_cast<int64_t
>(
kMaxInt) * 1000;
29 static_cast<int64_t
>(864000000) * 10000000;
58 if (time_ms < 0) time_ms -= (
kMsPerDay - 1);
59 return static_cast<int>(time_ms /
kMsPerDay);
66 return static_cast<int>(time_ms - days *
kMsPerDay);
73 int result = (days + 4) % 7;
74 return result >= 0 ? result : result + 7;
79 return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);
101 int64_t local_ms =
ToLocal(time_ms);
102 return static_cast<int>((time_ms - local_ms) /
kMsPerMin);
136 int time_within_day_ms =
static_cast<int>(time_ms - days *
kMsPerDay);
137 int year, month, day;
140 return static_cast<int64_t
>(new_days) *
kMsPerDay + time_within_day_ms;
149 int recent_year = (
IsLeap(year) ? 1956 : 1967) + (week_day * 12) % 28;
152 return 2008 + (recent_year + 3 * 28 - 2008) % 28;
172 double time_ms =
static_cast<double>(time_sec * 1000);
173 return static_cast<int>(
180 return static_cast<int>(offset);
static double DaylightSavingsOffset(double time, TimezoneCache *cache)
static const char * LocalTimezone(double time, TimezoneCache *cache)
static double LocalTimeOffset(TimezoneCache *cache)
static void DisposeTimezoneCache(TimezoneCache *cache)
virtual int GetDaylightSavingsOffsetFromOS(int64_t time_sec)
int EquivalentYear(int year)
void ExtendTheAfterSegment(int time_sec, int offset_ms)
virtual int GetLocalOffsetFromOS()
int DaysFromYearMonth(int year, int month)
DST * LeastRecentlyUsedDST(DST *skip)
static int TimeInDay(int64_t time_ms, int days)
static const int kMsPerMin
int DaylightSavingsOffsetInMs(int64_t time_ms)
void YearMonthDayFromDays(int days, int *year, int *month, int *day)
static const int kInvalidStamp
bool InvalidSegment(DST *segment)
const char * LocalTimezone(int64_t time_ms)
static const int kSecPerDay
static const int kDefaultDSTDeltaInSec
static const int64_t kMaxEpochTimeInMs
base::TimezoneCache * tz_cache_
int64_t ToLocal(int64_t time_ms)
static const int kMaxEpochTimeInSec
static const int64_t kMaxTimeInMs
void ProbeDST(int time_sec)
int64_t ToUTC(int64_t time_ms)
static int DaysFromTime(int64_t time_ms)
static const int kInvalidLocalOffsetInMs
static const int64_t kMsPerDay
static const int kDSTSize
int TimezoneOffset(int64_t time_ms)
void ClearSegment(DST *segment)
static const int64_t kMaxTimeBeforeUTCInMs
int64_t EquivalentTime(int64_t time_ms)
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
#define DCHECK(condition)
Debugger support for the V8 JavaScript engine.