V8 Project
v8::base::FINAL< T, S > Class Template Reference

#include <cpu.h>

+ Collaboration diagram for v8::base::FINAL< T, S >:

Public Types

typedef T flag_type
 
typedef S mask_type
 
typedef Mutex::NativeHandle NativeHandle
 
typedef bool(* EntropySource) (unsigned char *buffer, size_t buflen)
 

Public Member Functions

 CPU ()
 
const char * vendor () const
 
int stepping () const
 
int model () const
 
int ext_model () const
 
int family () const
 
int ext_family () const
 
int type () const
 
int implementer () const
 
int architecture () const
 
int part () const
 
bool has_fpu () const
 
bool has_cmov () const
 
bool has_sahf () const
 
bool has_mmx () const
 
bool has_sse () const
 
bool has_sse2 () const
 
bool has_sse3 () const
 
bool has_ssse3 () const
 
bool has_sse41 () const
 
bool has_sse42 () const
 
bool has_idiva () const
 
bool has_neon () const
 
bool has_thumb2 () const
 
bool has_vfp () const
 
bool has_vfp3 () const
 
bool has_vfp3_d32 () const
 
bool is_fp64_mode () const
 
 Flags ()
 
 Flags (flag_type flag)
 
 Flags (mask_type mask)
 
Flagsoperator&= (const Flags &flags)
 
Flagsoperator|= (const Flags &flags)
 
Flagsoperator^= (const Flags &flags)
 
Flags operator& (const Flags &flags) const
 
Flags operator| (const Flags &flags) const
 
Flags operator^ (const Flags &flags) const
 
Flagsoperator&= (flag_type flag)
 
Flagsoperator|= (flag_type flag)
 
Flagsoperator^= (flag_type flag)
 
Flags operator& (flag_type flag) const
 
Flags operator| (flag_type flag) const
 
Flags operator^ (flag_type flag) const
 
Flags operator~ () const
 
 operator mask_type () const
 
bool operator! () const
 
 ConditionVariable ()
 
 ~ConditionVariable ()
 
void NotifyOne ()
 
void NotifyAll ()
 
void Wait (Mutex *mutex)
 
bool WaitFor (Mutex *mutex, const TimeDelta &rel_time) WARN_UNUSED_RESULT
 
NativeHandlenative_handle ()
 
const NativeHandlenative_handle () const
 
void Start ()
 
void Stop ()
 
bool IsStarted () const
 
TimeDelta Restart ()
 
TimeDelta Elapsed () const
 
bool HasExpired (TimeDelta time_delta) const
 
 Mutex ()
 
 ~Mutex ()
 
void Lock ()
 
void Unlock ()
 
bool TryLock () WARN_UNUSED_RESULT
 
NativeHandlenative_handle ()
 
const NativeHandlenative_handle () const
 
 RecursiveMutex ()
 
 ~RecursiveMutex ()
 
void Lock ()
 
void Unlock ()
 
bool TryLock () WARN_UNUSED_RESULT
 
NativeHandlenative_handle ()
 
const NativeHandlenative_handle () const
 
 LockGuard (Mutex *mutex)
 
 ~LockGuard ()
 
 Semaphore (int count)
 
 ~Semaphore ()
 
void Signal ()
 
void Wait ()
 
bool WaitFor (const TimeDelta &rel_time) WARN_UNUSED_RESULT
 
NativeHandlenative_handle ()
 
const NativeHandlenative_handle () const
 
 TimeDelta ()
 
int InDays () const
 
int InHours () const
 
int InMinutes () const
 
double InSecondsF () const
 
int64_t InSeconds () const
 
double InMillisecondsF () const
 
int64_t InMilliseconds () const
 
int64_t InMillisecondsRoundedUp () const
 
int64_t InMicroseconds () const
 
int64_t InNanoseconds () const
 
struct mach_timespec ToMachTimespec () const
 
struct timespec ToTimespec () const
 
TimeDeltaoperator= (const TimeDelta &other)
 
TimeDelta operator+ (const TimeDelta &other) const
 
TimeDelta operator- (const TimeDelta &other) const
 
TimeDeltaoperator+= (const TimeDelta &other)
 
TimeDeltaoperator-= (const TimeDelta &other)
 
TimeDelta operator- () const
 
double TimesOf (const TimeDelta &other) const
 
double PercentOf (const TimeDelta &other) const
 
TimeDelta operator* (int64_t a) const
 
TimeDelta operator/ (int64_t a) const
 
TimeDeltaoperator*= (int64_t a)
 
TimeDeltaoperator/= (int64_t a)
 
int64_t operator/ (const TimeDelta &other) const
 
bool operator== (const TimeDelta &other) const
 
bool operator!= (const TimeDelta &other) const
 
bool operator< (const TimeDelta &other) const
 
bool operator<= (const TimeDelta &other) const
 
bool operator> (const TimeDelta &other) const
 
bool operator>= (const TimeDelta &other) const
 
 Time ()
 
bool IsNull () const
 
bool IsMax () const
 
int64_t ToInternalValue () const
 
struct timespec ToTimespec () const
 
struct timeval ToTimeval () const
 
struct _FILETIME ToFiletime () const
 
double ToJsTime () const
 
Timeoperator= (const Time &other)
 
TimeDelta operator- (const Time &other) const
 
Timeoperator+= (const TimeDelta &delta)
 
Timeoperator-= (const TimeDelta &delta)
 
Time operator+ (const TimeDelta &delta) const
 
Time operator- (const TimeDelta &delta) const
 
bool operator== (const Time &other) const
 
bool operator!= (const Time &other) const
 
bool operator< (const Time &other) const
 
bool operator<= (const Time &other) const
 
bool operator> (const Time &other) const
 
bool operator>= (const Time &other) const
 
 TimeTicks ()
 
bool IsNull () const
 
int64_t ToInternalValue () const
 
TimeTicksoperator= (const TimeTicks other)
 
TimeDelta operator- (const TimeTicks other) const
 
TimeTicksoperator+= (const TimeDelta &delta)
 
TimeTicksoperator-= (const TimeDelta &delta)
 
TimeTicks operator+ (const TimeDelta &delta) const
 
TimeTicks operator- (const TimeDelta &delta) const
 
bool operator== (const TimeTicks &other) const
 
bool operator!= (const TimeTicks &other) const
 
bool operator< (const TimeTicks &other) const
 
bool operator<= (const TimeTicks &other) const
 
bool operator> (const TimeTicks &other) const
 
bool operator>= (const TimeTicks &other) const
 
 RandomNumberGenerator ()
 
 RandomNumberGenerator (int64_t seed)
 
int NextInt () WARN_UNUSED_RESULT
 
int NextInt (int max) WARN_UNUSED_RESULT
 
bool NextBool () WARN_UNUSED_RESULT
 
double NextDouble () WARN_UNUSED_RESULT
 
void NextBytes (void *buffer, size_t buflen)
 
void SetSeed (int64_t seed)
 
int64_t initial_seed () const
 

Static Public Member Functions

static TimeDelta FromDays (int days)
 
static TimeDelta FromHours (int hours)
 
static TimeDelta FromMinutes (int minutes)
 
static TimeDelta FromSeconds (int64_t seconds)
 
static TimeDelta FromMilliseconds (int64_t milliseconds)
 
static TimeDelta FromMicroseconds (int64_t microseconds)
 
static TimeDelta FromNanoseconds (int64_t nanoseconds)
 
static TimeDelta FromMachTimespec (struct mach_timespec ts)
 
static TimeDelta FromTimespec (struct timespec ts)
 
static Time Now ()
 
static Time NowFromSystemTime ()
 
static Time UnixEpoch ()
 
static Time Max ()
 
static Time FromInternalValue (int64_t value)
 
static Time FromTimespec (struct timespec ts)
 
static Time FromTimeval (struct timeval tv)
 
static Time FromFiletime (struct _FILETIME ft)
 
static Time FromJsTime (double ms_since_epoch)
 
static TimeTicks Now ()
 
static TimeTicks HighResolutionNow ()
 
static bool IsHighResolutionClockWorking ()
 
static TimeTicks KernelTimestampNow ()
 
static bool KernelTimestampAvailable ()
 
static TimeTicks FromInternalValue (int64_t value)
 
static int NumberOfProcessors ()
 
static int64_t AmountOfPhysicalMemory ()
 
static int64_t AmountOfVirtualMemory ()
 
static void SetEntropySource (EntropySource entropy_source)
 

Static Public Attributes

static const int ARM = 0x41
 
static const int NVIDIA = 0x4e
 
static const int QUALCOMM = 0x51
 
static const int ARM_CORTEX_A5 = 0xc05
 
static const int ARM_CORTEX_A7 = 0xc07
 
static const int ARM_CORTEX_A8 = 0xc08
 
static const int ARM_CORTEX_A9 = 0xc09
 
static const int ARM_CORTEX_A12 = 0xc0c
 
static const int ARM_CORTEX_A15 = 0xc0f
 
static const int64_t kMillisecondsPerSecond = 1000
 
static const int64_t kMicrosecondsPerMillisecond = 1000
 
static const int64_t kMicrosecondsPerSecond
 
static const int64_t kMicrosecondsPerMinute = kMicrosecondsPerSecond * 60
 
static const int64_t kMicrosecondsPerHour = kMicrosecondsPerMinute * 60
 
static const int64_t kMicrosecondsPerDay = kMicrosecondsPerHour * 24
 
static const int64_t kMicrosecondsPerWeek = kMicrosecondsPerDay * 7
 
static const int64_t kNanosecondsPerMicrosecond = 1000
 
static const int64_t kNanosecondsPerSecond
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (ConditionVariable)
 
void AssertHeldAndUnmark ()
 
void AssertUnheldAndMark ()
 
 DISALLOW_COPY_AND_ASSIGN (Mutex)
 
 DISALLOW_COPY_AND_ASSIGN (RecursiveMutex)
 
 DISALLOW_COPY_AND_ASSIGN (LockGuard)
 
 DISALLOW_COPY_AND_ASSIGN (Semaphore)
 
 TimeDelta (int64_t delta)
 
 Time (int64_t us)
 
 TimeTicks (int64_t ticks)
 
int Next (int bits) WARN_UNUSED_RESULT
 

Static Private Member Functions

static TimeTicks Now ()
 

Private Attributes

char vendor_ [13]
 
int stepping_
 
int model_
 
int ext_model_
 
int family_
 
int ext_family_
 
int type_
 
int implementer_
 
int architecture_
 
int part_
 
bool has_fpu_
 
bool has_cmov_
 
bool has_sahf_
 
bool has_mmx_
 
bool has_sse_
 
bool has_sse2_
 
bool has_sse3_
 
bool has_ssse3_
 
bool has_sse41_
 
bool has_sse42_
 
bool has_idiva_
 
bool has_neon_
 
bool has_thumb2_
 
bool has_vfp_
 
bool has_vfp3_
 
bool has_vfp3_d32_
 
bool is_fp64_mode_
 
mask_type mask_
 
NativeHandle native_handle_
 
TimeTicks start_ticks_
 
Mutexmutex_
 
int64_t delta_
 
int64_t us_
 
int64_t ticks_
 
int64_t initial_seed_
 
int64_t seed_
 

Static Private Attributes

static const int64_t kMultiplier = V8_2PART_UINT64_C(0x5, deece66d)
 
static const int64_t kAddend = 0xb
 
static const int64_t kMask = V8_2PART_UINT64_C(0xffff, ffffffff)
 

Friends

class ConditionVariable
 

Detailed Description

template<typename T, typename S = int>
class v8::base::FINAL< T, S >

Definition at line 31 of file cpu.h.

Member Typedef Documentation

◆ EntropySource

template<typename T , typename S = int>
typedef bool(* v8::base::FINAL< T, S >::EntropySource) (unsigned char *buffer, size_t buflen)

Definition at line 32 of file random-number-generator.h.

◆ flag_type

template<typename T , typename S = int>
typedef T v8::base::FINAL< T, S >::flag_type

Definition at line 25 of file flags.h.

◆ mask_type

template<typename T , typename S = int>
typedef S v8::base::FINAL< T, S >::mask_type

Definition at line 26 of file flags.h.

◆ NativeHandle

template<typename T , typename S = int>
typedef Mutex::NativeHandle v8::base::FINAL< T, S >::NativeHandle

Definition at line 155 of file mutex.h.

Constructor & Destructor Documentation

◆ ~ConditionVariable()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::~ConditionVariable ( )

◆ ~Mutex()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::~Mutex ( )

◆ ~RecursiveMutex()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::~RecursiveMutex ( )

◆ ~LockGuard()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::~LockGuard ( )
inline

Definition at line 205 of file mutex.h.

205 { mutex_->Unlock(); }
Mutex * mutex_
Definition: mutex.h:208

◆ ~Semaphore()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::~Semaphore ( )

Member Function Documentation

◆ AmountOfPhysicalMemory()

template<typename T , typename S = int>
static int64_t v8::base::FINAL< T, S >::AmountOfPhysicalMemory ( )
static

◆ AmountOfVirtualMemory()

template<typename T , typename S = int>
static int64_t v8::base::FINAL< T, S >::AmountOfVirtualMemory ( )
static

◆ architecture()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::architecture ( ) const
inline

Definition at line 49 of file cpu.h.

49 { return architecture_; }
int architecture_
Definition: cpu.h:92

◆ AssertHeldAndUnmark()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::AssertHeldAndUnmark ( )
inlineprivate

Definition at line 75 of file mutex.h.

75  {
76 #ifdef DEBUG
77  DCHECK_EQ(1, level_);
78  level_--;
79 #endif
80  }
#define DCHECK_EQ(v1, v2)
Definition: logging.h:206

References DCHECK_EQ.

◆ AssertUnheldAndMark()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::AssertUnheldAndMark ( )
inlineprivate

Definition at line 82 of file mutex.h.

82  {
83 #ifdef DEBUG
84  DCHECK_EQ(0, level_);
85  level_++;
86 #endif
87  }

References DCHECK_EQ.

◆ ConditionVariable()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::ConditionVariable ( )

◆ CPU()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::CPU ( )

◆ DISALLOW_COPY_AND_ASSIGN() [1/5]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::DISALLOW_COPY_AND_ASSIGN ( ConditionVariable  )
private

◆ DISALLOW_COPY_AND_ASSIGN() [2/5]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::DISALLOW_COPY_AND_ASSIGN ( LockGuard  )
private

◆ DISALLOW_COPY_AND_ASSIGN() [3/5]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::DISALLOW_COPY_AND_ASSIGN ( Mutex  )
private

◆ DISALLOW_COPY_AND_ASSIGN() [4/5]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::DISALLOW_COPY_AND_ASSIGN ( RecursiveMutex  )
private

◆ DISALLOW_COPY_AND_ASSIGN() [5/5]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::DISALLOW_COPY_AND_ASSIGN ( Semaphore  )
private

◆ Elapsed()

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::Elapsed ( ) const
inline

Definition at line 67 of file elapsed-timer.h.

67  {
68  DCHECK(IsStarted());
69  TimeDelta elapsed = Now() - start_ticks_;
70  DCHECK(elapsed.InMicroseconds() >= 0);
71  return elapsed;
72  }
bool IsStarted() const
Definition: elapsed-timer.h:44
static TimeTicks Now()
Definition: elapsed-timer.h:83
TimeTicks start_ticks_
Definition: elapsed-timer.h:89
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK.

◆ ext_family()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::ext_family ( ) const
inline

Definition at line 41 of file cpu.h.

41 { return ext_family_; }
int ext_family_
Definition: cpu.h:89

◆ ext_model()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::ext_model ( ) const
inline

Definition at line 39 of file cpu.h.

39 { return ext_model_; }
int ext_model_
Definition: cpu.h:87

◆ family()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::family ( ) const
inline

Definition at line 40 of file cpu.h.

40 { return family_; }
int family_
Definition: cpu.h:88

◆ Flags() [1/3]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::Flags ( )
inline

Definition at line 28 of file flags.h.

28 : mask_(0) {}
mask_type mask_
Definition: flags.h:63

◆ Flags() [2/3]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::Flags ( flag_type  flag)
inline

Definition at line 29 of file flags.h.

29 : mask_(flag) {} // NOLINT(runtime/explicit)
kFeedbackVectorOffset flag
Definition: objects-inl.h:5418

◆ Flags() [3/3]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::Flags ( mask_type  mask)
inlineexplicit

Definition at line 30 of file flags.h.

30 : mask_(mask) {}

◆ FromDays()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromDays ( int  days)
static

◆ FromFiletime()

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::FromFiletime ( struct _FILETIME  ft)
static

◆ FromHours()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromHours ( int  hours)
static

◆ FromInternalValue() [1/2]

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::FromInternalValue ( int64_t  value)
inlinestatic

Definition at line 204 of file time.h.

204  {
205  return Time(value);
206  }

◆ FromInternalValue() [2/2]

template<typename T , typename S = int>
static TimeTicks v8::base::FINAL< T, S >::FromInternalValue ( int64_t  value)
inlinestatic

Definition at line 330 of file time.h.

330  {
331  return TimeTicks(value);
332  }

◆ FromJsTime()

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::FromJsTime ( double  ms_since_epoch)
static

◆ FromMachTimespec()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromMachTimespec ( struct mach_timespec  ts)
static

◆ FromMicroseconds()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromMicroseconds ( int64_t  microseconds)
inlinestatic

Definition at line 43 of file time.h.

43  {
44  return TimeDelta(microseconds);
45  }

◆ FromMilliseconds()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromMilliseconds ( int64_t  milliseconds)
static

◆ FromMinutes()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromMinutes ( int  minutes)
static

◆ FromNanoseconds()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromNanoseconds ( int64_t  nanoseconds)
static

◆ FromSeconds()

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromSeconds ( int64_t  seconds)
static

◆ FromTimespec() [1/2]

template<typename T , typename S = int>
static TimeDelta v8::base::FINAL< T, S >::FromTimespec ( struct timespec  ts)
static

◆ FromTimespec() [2/2]

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::FromTimespec ( struct timespec  ts)
static

◆ FromTimeval()

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::FromTimeval ( struct timeval  tv)
static

◆ has_cmov()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_cmov ( ) const
inline

Definition at line 62 of file cpu.h.

62 { return has_cmov_; }
bool has_cmov_
Definition: cpu.h:95

◆ has_fpu()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_fpu ( ) const
inline

Definition at line 59 of file cpu.h.

59 { return has_fpu_; }
bool has_fpu_
Definition: cpu.h:94

◆ has_idiva()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_idiva ( ) const
inline

Definition at line 73 of file cpu.h.

73 { return has_idiva_; }
bool has_idiva_
Definition: cpu.h:104

◆ has_mmx()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_mmx ( ) const
inline

Definition at line 64 of file cpu.h.

64 { return has_mmx_; }
bool has_mmx_
Definition: cpu.h:97

◆ has_neon()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_neon ( ) const
inline

Definition at line 74 of file cpu.h.

74 { return has_neon_; }
bool has_neon_
Definition: cpu.h:105

◆ has_sahf()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sahf ( ) const
inline

Definition at line 63 of file cpu.h.

63 { return has_sahf_; }
bool has_sahf_
Definition: cpu.h:96

◆ has_sse()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse ( ) const
inline

Definition at line 65 of file cpu.h.

65 { return has_sse_; }
bool has_sse_
Definition: cpu.h:98

◆ has_sse2()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse2 ( ) const
inline

Definition at line 66 of file cpu.h.

66 { return has_sse2_; }
bool has_sse2_
Definition: cpu.h:99

◆ has_sse3()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse3 ( ) const
inline

Definition at line 67 of file cpu.h.

67 { return has_sse3_; }
bool has_sse3_
Definition: cpu.h:100

◆ has_sse41()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse41 ( ) const
inline

Definition at line 69 of file cpu.h.

69 { return has_sse41_; }
bool has_sse41_
Definition: cpu.h:102

◆ has_sse42()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse42 ( ) const
inline

Definition at line 70 of file cpu.h.

70 { return has_sse42_; }
bool has_sse42_
Definition: cpu.h:103

◆ has_ssse3()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_ssse3 ( ) const
inline

Definition at line 68 of file cpu.h.

68 { return has_ssse3_; }
bool has_ssse3_
Definition: cpu.h:101

◆ has_thumb2()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_thumb2 ( ) const
inline

Definition at line 75 of file cpu.h.

75 { return has_thumb2_; }
bool has_thumb2_
Definition: cpu.h:106

◆ has_vfp()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_vfp ( ) const
inline

Definition at line 76 of file cpu.h.

76 { return has_vfp_; }
bool has_vfp_
Definition: cpu.h:107

◆ has_vfp3()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_vfp3 ( ) const
inline

Definition at line 77 of file cpu.h.

77 { return has_vfp3_; }
bool has_vfp3_
Definition: cpu.h:108

◆ has_vfp3_d32()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_vfp3_d32 ( ) const
inline

Definition at line 78 of file cpu.h.

78 { return has_vfp3_d32_; }
bool has_vfp3_d32_
Definition: cpu.h:109

◆ HasExpired()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::HasExpired ( TimeDelta  time_delta) const
inline

Definition at line 77 of file elapsed-timer.h.

77  {
78  DCHECK(IsStarted());
79  return Elapsed() >= time_delta;
80  }
TimeDelta Elapsed() const
Definition: elapsed-timer.h:67

References DCHECK.

◆ HighResolutionNow()

template<typename T , typename S = int>
static TimeTicks v8::base::FINAL< T, S >::HighResolutionNow ( )
static

◆ implementer()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::implementer ( ) const
inline

Definition at line 45 of file cpu.h.

45 { return implementer_; }
int implementer_
Definition: cpu.h:91

◆ InDays()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::InDays ( ) const

◆ InHours()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::InHours ( ) const

◆ initial_seed()

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::initial_seed ( ) const
inline

Definition at line 77 of file random-number-generator.h.

77 { return initial_seed_; }

◆ InMicroseconds()

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::InMicroseconds ( ) const
inline

Definition at line 61 of file time.h.

61 { return delta_; }
int64_t delta_
Definition: time.h:151

◆ InMilliseconds()

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::InMilliseconds ( ) const

◆ InMillisecondsF()

template<typename T , typename S = int>
double v8::base::FINAL< T, S >::InMillisecondsF ( ) const

◆ InMillisecondsRoundedUp()

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::InMillisecondsRoundedUp ( ) const

◆ InMinutes()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::InMinutes ( ) const

◆ InNanoseconds()

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::InNanoseconds ( ) const

◆ InSeconds()

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::InSeconds ( ) const

◆ InSecondsF()

template<typename T , typename S = int>
double v8::base::FINAL< T, S >::InSecondsF ( ) const

◆ is_fp64_mode()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::is_fp64_mode ( ) const
inline

Definition at line 81 of file cpu.h.

81 { return is_fp64_mode_; }
bool is_fp64_mode_
Definition: cpu.h:110

◆ IsHighResolutionClockWorking()

template<typename T , typename S = int>
static bool v8::base::FINAL< T, S >::IsHighResolutionClockWorking ( )
static

◆ IsMax()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::IsMax ( ) const
inline

Definition at line 182 of file time.h.

182 { return us_ == std::numeric_limits<int64_t>::max(); }
int64_t us_
Definition: time.h:280

◆ IsNull() [1/2]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::IsNull ( ) const
inline

Definition at line 179 of file time.h.

179 { return us_ == 0; }

◆ IsNull() [2/2]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::IsNull ( ) const
inline

Definition at line 326 of file time.h.

326 { return ticks_ == 0; }
int64_t ticks_
Definition: time.h:391

◆ IsStarted()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::IsStarted ( ) const
inline

Definition at line 44 of file elapsed-timer.h.

44  {
45  DCHECK(started_ || start_ticks_.IsNull());
46  DCHECK(!started_ || !start_ticks_.IsNull());
47  return !start_ticks_.IsNull();
48  }

References DCHECK.

◆ KernelTimestampAvailable()

template<typename T , typename S = int>
static bool v8::base::FINAL< T, S >::KernelTimestampAvailable ( )
static

◆ KernelTimestampNow()

template<typename T , typename S = int>
static TimeTicks v8::base::FINAL< T, S >::KernelTimestampNow ( )
static

◆ Lock() [1/2]

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Lock ( )

◆ Lock() [2/2]

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Lock ( )

◆ LockGuard()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::LockGuard ( Mutex mutex)
inlineexplicit

Definition at line 204 of file mutex.h.

204 : mutex_(mutex) { mutex_->Lock(); }

◆ Max()

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::Max ( )
inlinestatic

Definition at line 200 of file time.h.

200 { return Time(std::numeric_limits<int64_t>::max()); }

◆ model()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::model ( ) const
inline

Definition at line 38 of file cpu.h.

38 { return model_; }
int model_
Definition: cpu.h:86

◆ Mutex()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::Mutex ( )

◆ native_handle() [1/8]

template<typename T , typename S = int>
NativeHandle& v8::base::FINAL< T, S >::native_handle ( )
inline

Definition at line 86 of file condition-variable.h.

86  {
87  return native_handle_;
88  }
NativeHandle native_handle_

◆ native_handle() [2/8]

template<typename T , typename S = int>
NativeHandle& v8::base::FINAL< T, S >::native_handle ( )
inline

Definition at line 62 of file mutex.h.

62  {
63  return native_handle_;
64  }

◆ native_handle() [3/8]

template<typename T , typename S = int>
NativeHandle& v8::base::FINAL< T, S >::native_handle ( )
inline

Definition at line 157 of file mutex.h.

157  {
158  return native_handle_;
159  }

◆ native_handle() [4/8]

template<typename T , typename S = int>
NativeHandle& v8::base::FINAL< T, S >::native_handle ( )
inline

Definition at line 60 of file semaphore.h.

60  {
61  return native_handle_;
62  }

◆ native_handle() [5/8]

template<typename T , typename S = int>
const NativeHandle& v8::base::FINAL< T, S >::native_handle ( ) const
inline

Definition at line 89 of file condition-variable.h.

89  {
90  return native_handle_;
91  }

◆ native_handle() [6/8]

template<typename T , typename S = int>
const NativeHandle& v8::base::FINAL< T, S >::native_handle ( ) const
inline

Definition at line 65 of file mutex.h.

65  {
66  return native_handle_;
67  }

◆ native_handle() [7/8]

template<typename T , typename S = int>
const NativeHandle& v8::base::FINAL< T, S >::native_handle ( ) const
inline

Definition at line 160 of file mutex.h.

160  {
161  return native_handle_;
162  }

◆ native_handle() [8/8]

template<typename T , typename S = int>
const NativeHandle& v8::base::FINAL< T, S >::native_handle ( ) const
inline

Definition at line 63 of file semaphore.h.

63  {
64  return native_handle_;
65  }

◆ Next()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::Next ( int  bits)
private

◆ NextBool()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::NextBool ( )
inline

Definition at line 60 of file random-number-generator.h.

60  {
61  return Next(1) != 0;
62  }
int Next(int bits) WARN_UNUSED_RESULT

◆ NextBytes()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::NextBytes ( void *  buffer,
size_t  buflen 
)

◆ NextDouble()

template<typename T , typename S = int>
double v8::base::FINAL< T, S >::NextDouble ( )

◆ NextInt() [1/2]

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::NextInt ( )
inline

Definition at line 43 of file random-number-generator.h.

43  {
44  return Next(32);
45  }

◆ NextInt() [2/2]

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::NextInt ( int  max)

◆ NotifyAll()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::NotifyAll ( )

◆ NotifyOne()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::NotifyOne ( )

◆ Now() [1/3]

template<typename T , typename S = int>
static TimeTicks v8::base::FINAL< T, S >::Now ( )
inlinestaticprivate

Definition at line 83 of file elapsed-timer.h.

83  {
84  TimeTicks now = TimeTicks::HighResolutionNow();
85  DCHECK(!now.IsNull());
86  return now;
87  }

References DCHECK.

◆ Now() [2/3]

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::Now ( )
static

◆ Now() [3/3]

template<typename T , typename S = int>
static TimeTicks v8::base::FINAL< T, S >::Now ( )
static

◆ NowFromSystemTime()

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::NowFromSystemTime ( )
static

◆ NumberOfProcessors()

template<typename T , typename S = int>
static int v8::base::FINAL< T, S >::NumberOfProcessors ( )
static

◆ operator mask_type()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::operator mask_type ( ) const
inline

Definition at line 59 of file flags.h.

59 { return mask_; }

◆ operator!()

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator! ( ) const
inline

Definition at line 60 of file flags.h.

60 { return !mask_; }

◆ operator!=() [1/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator!= ( const Time other) const
inline

Definition at line 260 of file time.h.

260  {
261  return us_ != other.us_;
262  }

◆ operator!=() [2/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator!= ( const TimeDelta other) const
inline

Definition at line 128 of file time.h.

128  {
129  return delta_ != other.delta_;
130  }

◆ operator!=() [3/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator!= ( const TimeTicks other) const
inline

Definition at line 369 of file time.h.

369  {
370  return ticks_ != other.ticks_;
371  }

◆ operator&() [1/2]

template<typename T , typename S = int>
Flags v8::base::FINAL< T, S >::operator& ( const Flags flags) const
inline

Definition at line 45 of file flags.h.

45 { return Flags(*this) &= flags; }

References v8::internal::anonymous_namespace{flags.cc}::flags.

◆ operator&() [2/2]

template<typename T , typename S = int>
Flags v8::base::FINAL< T, S >::operator& ( flag_type  flag) const
inline

Definition at line 53 of file flags.h.

53 { return operator&(Flags(flag)); }
Flags operator&(const Flags &flags) const
Definition: flags.h:45

References v8::internal::flag, and v8::base::FINAL< T, S >::operator&().

Referenced by v8::base::FINAL< T, S >::operator&().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator&=() [1/2]

template<typename T , typename S = int>
Flags& v8::base::FINAL< T, S >::operator&= ( const Flags flags)
inline

Definition at line 32 of file flags.h.

32  {
33  mask_ &= flags.mask_;
34  return *this;
35  }

References v8::internal::anonymous_namespace{flags.cc}::flags.

◆ operator&=() [2/2]

template<typename T , typename S = int>
Flags& v8::base::FINAL< T, S >::operator&= ( flag_type  flag)
inline

Definition at line 49 of file flags.h.

49 { return operator&=(Flags(flag)); }
Flags & operator&=(const Flags &flags)
Definition: flags.h:32

References v8::internal::flag, and v8::base::FINAL< T, S >::operator&=().

Referenced by v8::base::FINAL< T, S >::operator&=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator*()

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::operator* ( int64_t  a) const
inline

Definition at line 106 of file time.h.

106  {
107  return TimeDelta(delta_ * a);
108  }

◆ operator*=()

template<typename T , typename S = int>
TimeDelta& v8::base::FINAL< T, S >::operator*= ( int64_t  a)
inline

Definition at line 112 of file time.h.

112  {
113  delta_ *= a;
114  return *this;
115  }

◆ operator+() [1/3]

template<typename T , typename S = int>
Time v8::base::FINAL< T, S >::operator+ ( const TimeDelta delta) const
inline

Definition at line 249 of file time.h.

249  {
250  return Time(us_ + delta.InMicroseconds());
251  }

◆ operator+() [2/3]

template<typename T , typename S = int>
TimeTicks v8::base::FINAL< T, S >::operator+ ( const TimeDelta delta) const
inline

Definition at line 358 of file time.h.

358  {
359  return TimeTicks(ticks_ + delta.InMicroseconds());
360  }

◆ operator+() [3/3]

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::operator+ ( const TimeDelta other) const
inline

Definition at line 78 of file time.h.

78  {
79  return TimeDelta(delta_ + other.delta_);
80  }

◆ operator+=() [1/3]

template<typename T , typename S = int>
Time& v8::base::FINAL< T, S >::operator+= ( const TimeDelta delta)
inline

Definition at line 239 of file time.h.

239  {
240  us_ += delta.InMicroseconds();
241  return *this;
242  }

◆ operator+=() [2/3]

template<typename T , typename S = int>
TimeTicks& v8::base::FINAL< T, S >::operator+= ( const TimeDelta delta)
inline

Definition at line 348 of file time.h.

348  {
349  ticks_ += delta.InMicroseconds();
350  return *this;
351  }

◆ operator+=() [3/3]

template<typename T , typename S = int>
TimeDelta& v8::base::FINAL< T, S >::operator+= ( const TimeDelta other)
inline

Definition at line 85 of file time.h.

85  {
86  delta_ += other.delta_;
87  return *this;
88  }

◆ operator-() [1/6]

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::operator- ( ) const
inline

Definition at line 93 of file time.h.

93  {
94  return TimeDelta(-delta_);
95  }

◆ operator-() [2/6]

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::operator- ( const Time other) const
inline

Definition at line 234 of file time.h.

234  {
235  return TimeDelta::FromMicroseconds(us_ - other.us_);
236  }

◆ operator-() [3/6]

template<typename T , typename S = int>
Time v8::base::FINAL< T, S >::operator- ( const TimeDelta delta) const
inline

Definition at line 252 of file time.h.

252  {
253  return Time(us_ - delta.InMicroseconds());
254  }

◆ operator-() [4/6]

template<typename T , typename S = int>
TimeTicks v8::base::FINAL< T, S >::operator- ( const TimeDelta delta) const
inline

Definition at line 361 of file time.h.

361  {
362  return TimeTicks(ticks_ - delta.InMicroseconds());
363  }

◆ operator-() [5/6]

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::operator- ( const TimeDelta other) const
inline

Definition at line 81 of file time.h.

81  {
82  return TimeDelta(delta_ - other.delta_);
83  }

◆ operator-() [6/6]

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::operator- ( const TimeTicks  other) const
inline

Definition at line 343 of file time.h.

343  {
344  return TimeDelta::FromMicroseconds(ticks_ - other.ticks_);
345  }

◆ operator-=() [1/3]

template<typename T , typename S = int>
Time& v8::base::FINAL< T, S >::operator-= ( const TimeDelta delta)
inline

Definition at line 243 of file time.h.

243  {
244  us_ -= delta.InMicroseconds();
245  return *this;
246  }

◆ operator-=() [2/3]

template<typename T , typename S = int>
TimeTicks& v8::base::FINAL< T, S >::operator-= ( const TimeDelta delta)
inline

Definition at line 352 of file time.h.

352  {
353  ticks_ -= delta.InMicroseconds();
354  return *this;
355  }

◆ operator-=() [3/3]

template<typename T , typename S = int>
TimeDelta& v8::base::FINAL< T, S >::operator-= ( const TimeDelta other)
inline

Definition at line 89 of file time.h.

89  {
90  delta_ -= other.delta_;
91  return *this;
92  }

◆ operator/() [1/2]

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::operator/ ( const TimeDelta other) const
inline

Definition at line 120 of file time.h.

120  {
121  return delta_ / other.delta_;
122  }

◆ operator/() [2/2]

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::operator/ ( int64_t  a) const
inline

Definition at line 109 of file time.h.

109  {
110  return TimeDelta(delta_ / a);
111  }

◆ operator/=()

template<typename T , typename S = int>
TimeDelta& v8::base::FINAL< T, S >::operator/= ( int64_t  a)
inline

Definition at line 116 of file time.h.

116  {
117  delta_ /= a;
118  return *this;
119  }

◆ operator<() [1/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator< ( const Time other) const
inline

Definition at line 263 of file time.h.

263  {
264  return us_ < other.us_;
265  }

◆ operator<() [2/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator< ( const TimeDelta other) const
inline

Definition at line 131 of file time.h.

131  {
132  return delta_ < other.delta_;
133  }

◆ operator<() [3/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator< ( const TimeTicks other) const
inline

Definition at line 372 of file time.h.

372  {
373  return ticks_ < other.ticks_;
374  }

◆ operator<=() [1/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator<= ( const Time other) const
inline

Definition at line 266 of file time.h.

266  {
267  return us_ <= other.us_;
268  }

◆ operator<=() [2/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator<= ( const TimeDelta other) const
inline

Definition at line 134 of file time.h.

134  {
135  return delta_ <= other.delta_;
136  }

◆ operator<=() [3/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator<= ( const TimeTicks other) const
inline

Definition at line 375 of file time.h.

375  {
376  return ticks_ <= other.ticks_;
377  }

◆ operator=() [1/3]

template<typename T , typename S = int>
Time& v8::base::FINAL< T, S >::operator= ( const Time other)
inline

Definition at line 228 of file time.h.

228  {
229  us_ = other.us_;
230  return *this;
231  }

◆ operator=() [2/3]

template<typename T , typename S = int>
TimeDelta& v8::base::FINAL< T, S >::operator= ( const TimeDelta other)
inline

Definition at line 72 of file time.h.

72  {
73  delta_ = other.delta_;
74  return *this;
75  }

◆ operator=() [3/3]

template<typename T , typename S = int>
TimeTicks& v8::base::FINAL< T, S >::operator= ( const TimeTicks  other)
inline

Definition at line 337 of file time.h.

337  {
338  ticks_ = other.ticks_;
339  return *this;
340  }

◆ operator==() [1/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator== ( const Time other) const
inline

Definition at line 257 of file time.h.

257  {
258  return us_ == other.us_;
259  }

◆ operator==() [2/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator== ( const TimeDelta other) const
inline

Definition at line 125 of file time.h.

125  {
126  return delta_ == other.delta_;
127  }

◆ operator==() [3/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator== ( const TimeTicks other) const
inline

Definition at line 366 of file time.h.

366  {
367  return ticks_ == other.ticks_;
368  }

◆ operator>() [1/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator> ( const Time other) const
inline

Definition at line 269 of file time.h.

269  {
270  return us_ > other.us_;
271  }

◆ operator>() [2/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator> ( const TimeDelta other) const
inline

Definition at line 137 of file time.h.

137  {
138  return delta_ > other.delta_;
139  }

◆ operator>() [3/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator> ( const TimeTicks other) const
inline

Definition at line 378 of file time.h.

378  {
379  return ticks_ > other.ticks_;
380  }

◆ operator>=() [1/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator>= ( const Time other) const
inline

Definition at line 272 of file time.h.

272  {
273  return us_ >= other.us_;
274  }

◆ operator>=() [2/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator>= ( const TimeDelta other) const
inline

Definition at line 140 of file time.h.

140  {
141  return delta_ >= other.delta_;
142  }

◆ operator>=() [3/3]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::operator>= ( const TimeTicks other) const
inline

Definition at line 381 of file time.h.

381  {
382  return ticks_ >= other.ticks_;
383  }

◆ operator^() [1/2]

template<typename T , typename S = int>
Flags v8::base::FINAL< T, S >::operator^ ( const Flags flags) const
inline

Definition at line 47 of file flags.h.

47 { return Flags(*this) ^= flags; }

References v8::internal::anonymous_namespace{flags.cc}::flags.

◆ operator^() [2/2]

template<typename T , typename S = int>
Flags v8::base::FINAL< T, S >::operator^ ( flag_type  flag) const
inline

Definition at line 55 of file flags.h.

55 { return operator^(Flags(flag)); }
Flags operator^(const Flags &flags) const
Definition: flags.h:47

References v8::internal::flag, and v8::base::FINAL< T, S >::operator^().

Referenced by v8::base::FINAL< T, S >::operator^().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator^=() [1/2]

template<typename T , typename S = int>
Flags& v8::base::FINAL< T, S >::operator^= ( const Flags flags)
inline

Definition at line 40 of file flags.h.

40  {
41  mask_ ^= flags.mask_;
42  return *this;
43  }

References v8::internal::anonymous_namespace{flags.cc}::flags.

◆ operator^=() [2/2]

template<typename T , typename S = int>
Flags& v8::base::FINAL< T, S >::operator^= ( flag_type  flag)
inline

Definition at line 51 of file flags.h.

51 { return operator^=(Flags(flag)); }
Flags & operator^=(const Flags &flags)
Definition: flags.h:40

References v8::internal::flag, and v8::base::FINAL< T, S >::operator^=().

Referenced by v8::base::FINAL< T, S >::operator^=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator|() [1/2]

template<typename T , typename S = int>
Flags v8::base::FINAL< T, S >::operator| ( const Flags flags) const
inline

Definition at line 46 of file flags.h.

46 { return Flags(*this) |= flags; }

References v8::internal::anonymous_namespace{flags.cc}::flags.

◆ operator|() [2/2]

template<typename T , typename S = int>
Flags v8::base::FINAL< T, S >::operator| ( flag_type  flag) const
inline

Definition at line 54 of file flags.h.

54 { return operator|(Flags(flag)); }
Flags operator|(const Flags &flags) const
Definition: flags.h:46

References v8::internal::flag, and v8::base::FINAL< T, S >::operator|().

Referenced by v8::base::FINAL< T, S >::operator|().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator|=() [1/2]

template<typename T , typename S = int>
Flags& v8::base::FINAL< T, S >::operator|= ( const Flags flags)
inline

Definition at line 36 of file flags.h.

36  {
37  mask_ |= flags.mask_;
38  return *this;
39  }

References v8::internal::anonymous_namespace{flags.cc}::flags.

◆ operator|=() [2/2]

template<typename T , typename S = int>
Flags& v8::base::FINAL< T, S >::operator|= ( flag_type  flag)
inline

Definition at line 50 of file flags.h.

50 { return operator|=(Flags(flag)); }
Flags & operator|=(const Flags &flags)
Definition: flags.h:36

References v8::internal::flag, and v8::base::FINAL< T, S >::operator|=().

Referenced by v8::base::FINAL< T, S >::operator|=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator~()

template<typename T , typename S = int>
Flags v8::base::FINAL< T, S >::operator~ ( ) const
inline

Definition at line 57 of file flags.h.

57 { return Flags(~mask_); }

◆ part()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::part ( ) const
inline

Definition at line 50 of file cpu.h.

50 { return part_; }
int part_
Definition: cpu.h:93

◆ PercentOf()

template<typename T , typename S = int>
double v8::base::FINAL< T, S >::PercentOf ( const TimeDelta other) const
inline

Definition at line 100 of file time.h.

100  {
101  return TimesOf(other) * 100.0;
102  }
double TimesOf(const TimeDelta &other) const
Definition: time.h:97

◆ RandomNumberGenerator() [1/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::RandomNumberGenerator ( )

◆ RandomNumberGenerator() [2/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::RandomNumberGenerator ( int64_t  seed)
inlineexplicit

Definition at line 36 of file random-number-generator.h.

36 { SetSeed(seed); }
void SetSeed(int64_t seed)

◆ RecursiveMutex()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::RecursiveMutex ( )

◆ Restart()

template<typename T , typename S = int>
TimeDelta v8::base::FINAL< T, S >::Restart ( )
inline

Definition at line 55 of file elapsed-timer.h.

55  {
56  DCHECK(IsStarted());
57  TimeTicks ticks = Now();
58  TimeDelta elapsed = ticks - start_ticks_;
59  DCHECK(elapsed.InMicroseconds() >= 0);
60  start_ticks_ = ticks;
61  DCHECK(IsStarted());
62  return elapsed;
63  }

References DCHECK.

◆ Semaphore()

template<typename T , typename S = int>
v8::base::FINAL< T, S >::Semaphore ( int  count)
explicit

◆ SetEntropySource()

template<typename T , typename S = int>
static void v8::base::FINAL< T, S >::SetEntropySource ( EntropySource  entropy_source)
static

◆ SetSeed()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::SetSeed ( int64_t  seed)

◆ Signal()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Signal ( )

◆ Start()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Start ( )
inline

Definition at line 23 of file elapsed-timer.h.

23  {
24  DCHECK(!IsStarted());
25  start_ticks_ = Now();
26 #ifdef DEBUG
27  started_ = true;
28 #endif
29  DCHECK(IsStarted());
30  }

References DCHECK.

◆ stepping()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::stepping ( ) const
inline

Definition at line 37 of file cpu.h.

37 { return stepping_; }
int stepping_
Definition: cpu.h:85

◆ Stop()

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Stop ( )
inline

Definition at line 34 of file elapsed-timer.h.

34  {
35  DCHECK(IsStarted());
37 #ifdef DEBUG
38  started_ = false;
39 #endif
40  DCHECK(!IsStarted());
41  }

References DCHECK.

◆ Time() [1/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::Time ( )
inline

Definition at line 176 of file time.h.

176 : us_(0) {}

◆ Time() [2/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::Time ( int64_t  us)
inlineexplicitprivate

Definition at line 277 of file time.h.

277 : us_(us) {}

◆ TimeDelta() [1/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::TimeDelta ( )
inline

Definition at line 35 of file time.h.

35 : delta_(0) {}

◆ TimeDelta() [2/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::TimeDelta ( int64_t  delta)
inlineexplicitprivate

Definition at line 148 of file time.h.

148 : delta_(delta) {}

◆ TimesOf()

template<typename T , typename S = int>
double v8::base::FINAL< T, S >::TimesOf ( const TimeDelta other) const
inline

Definition at line 97 of file time.h.

97  {
98  return static_cast<double>(delta_) / static_cast<double>(other.delta_);
99  }

◆ TimeTicks() [1/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::TimeTicks ( )
inline

Definition at line 300 of file time.h.

300 : ticks_(0) {}

◆ TimeTicks() [2/2]

template<typename T , typename S = int>
v8::base::FINAL< T, S >::TimeTicks ( int64_t  ticks)
inlineexplicitprivate

Definition at line 388 of file time.h.

388 : ticks_(ticks) {}

◆ ToFiletime()

template<typename T , typename S = int>
struct _FILETIME v8::base::FINAL< T, S >::ToFiletime ( ) const

◆ ToInternalValue() [1/2]

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::ToInternalValue ( ) const
inline

Definition at line 207 of file time.h.

207  {
208  return us_;
209  }

◆ ToInternalValue() [2/2]

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::ToInternalValue ( ) const
inline

Definition at line 333 of file time.h.

333  {
334  return ticks_;
335  }

◆ ToJsTime()

template<typename T , typename S = int>
double v8::base::FINAL< T, S >::ToJsTime ( ) const

◆ ToMachTimespec()

template<typename T , typename S = int>
struct mach_timespec v8::base::FINAL< T, S >::ToMachTimespec ( ) const

◆ ToTimespec() [1/2]

template<typename T , typename S = int>
struct timespec v8::base::FINAL< T, S >::ToTimespec ( ) const

◆ ToTimespec() [2/2]

template<typename T , typename S = int>
struct timespec v8::base::FINAL< T, S >::ToTimespec ( ) const

◆ ToTimeval()

template<typename T , typename S = int>
struct timeval v8::base::FINAL< T, S >::ToTimeval ( ) const

◆ TryLock() [1/2]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::TryLock ( )

◆ TryLock() [2/2]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::TryLock ( )

◆ type()

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::type ( ) const
inline

Definition at line 42 of file cpu.h.

42 { return type_; }
int type_
Definition: cpu.h:90

◆ UnixEpoch()

template<typename T , typename S = int>
static Time v8::base::FINAL< T, S >::UnixEpoch ( )
inlinestatic

Definition at line 196 of file time.h.

196 { return Time(0); }

◆ Unlock() [1/2]

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Unlock ( )

◆ Unlock() [2/2]

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Unlock ( )

◆ vendor()

template<typename T , typename S = int>
const char* v8::base::FINAL< T, S >::vendor ( ) const
inline

Definition at line 36 of file cpu.h.

36 { return vendor_; }
char vendor_[13]
Definition: cpu.h:84

◆ Wait() [1/2]

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Wait ( )

◆ Wait() [2/2]

template<typename T , typename S = int>
void v8::base::FINAL< T, S >::Wait ( Mutex mutex)

◆ WaitFor() [1/2]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::WaitFor ( const TimeDelta rel_time)

◆ WaitFor() [2/2]

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::WaitFor ( Mutex mutex,
const TimeDelta rel_time 
)

Friends And Related Function Documentation

◆ ConditionVariable

template<typename T , typename S = int>
friend class ConditionVariable
friend

Definition at line 89 of file mutex.h.

Member Data Documentation

◆ architecture_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::architecture_
private

Definition at line 92 of file cpu.h.

◆ ARM

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::ARM = 0x41
static

Definition at line 46 of file cpu.h.

◆ ARM_CORTEX_A12

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::ARM_CORTEX_A12 = 0xc0c
static

Definition at line 55 of file cpu.h.

◆ ARM_CORTEX_A15

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::ARM_CORTEX_A15 = 0xc0f
static

Definition at line 56 of file cpu.h.

◆ ARM_CORTEX_A5

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::ARM_CORTEX_A5 = 0xc05
static

Definition at line 51 of file cpu.h.

◆ ARM_CORTEX_A7

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::ARM_CORTEX_A7 = 0xc07
static

Definition at line 52 of file cpu.h.

◆ ARM_CORTEX_A8

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::ARM_CORTEX_A8 = 0xc08
static

Definition at line 53 of file cpu.h.

◆ ARM_CORTEX_A9

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::ARM_CORTEX_A9 = 0xc09
static

Definition at line 54 of file cpu.h.

◆ delta_

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::delta_
private

Definition at line 151 of file time.h.

◆ ext_family_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::ext_family_
private

Definition at line 89 of file cpu.h.

◆ ext_model_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::ext_model_
private

Definition at line 87 of file cpu.h.

◆ family_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::family_
private

Definition at line 88 of file cpu.h.

◆ has_cmov_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_cmov_
private

Definition at line 95 of file cpu.h.

◆ has_fpu_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_fpu_
private

Definition at line 94 of file cpu.h.

◆ has_idiva_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_idiva_
private

Definition at line 104 of file cpu.h.

◆ has_mmx_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_mmx_
private

Definition at line 97 of file cpu.h.

◆ has_neon_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_neon_
private

Definition at line 105 of file cpu.h.

◆ has_sahf_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sahf_
private

Definition at line 96 of file cpu.h.

◆ has_sse2_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse2_
private

Definition at line 99 of file cpu.h.

◆ has_sse3_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse3_
private

Definition at line 100 of file cpu.h.

◆ has_sse41_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse41_
private

Definition at line 102 of file cpu.h.

◆ has_sse42_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse42_
private

Definition at line 103 of file cpu.h.

◆ has_sse_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_sse_
private

Definition at line 98 of file cpu.h.

◆ has_ssse3_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_ssse3_
private

Definition at line 101 of file cpu.h.

◆ has_thumb2_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_thumb2_
private

Definition at line 106 of file cpu.h.

◆ has_vfp3_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_vfp3_
private

Definition at line 108 of file cpu.h.

◆ has_vfp3_d32_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_vfp3_d32_
private

Definition at line 109 of file cpu.h.

◆ has_vfp_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::has_vfp_
private

Definition at line 107 of file cpu.h.

◆ implementer_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::implementer_
private

Definition at line 91 of file cpu.h.

◆ initial_seed_

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::initial_seed_
private

Definition at line 86 of file random-number-generator.h.

◆ is_fp64_mode_

template<typename T , typename S = int>
bool v8::base::FINAL< T, S >::is_fp64_mode_
private

Definition at line 110 of file cpu.h.

◆ kAddend

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kAddend = 0xb
staticprivate

Definition at line 81 of file random-number-generator.h.

◆ kMask

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMask = V8_2PART_UINT64_C(0xffff, ffffffff)
staticprivate

Definition at line 82 of file random-number-generator.h.

◆ kMicrosecondsPerDay

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMicrosecondsPerDay = kMicrosecondsPerHour * 24
static

Definition at line 169 of file time.h.

◆ kMicrosecondsPerHour

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMicrosecondsPerHour = kMicrosecondsPerMinute * 60
static

Definition at line 168 of file time.h.

◆ kMicrosecondsPerMillisecond

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMicrosecondsPerMillisecond = 1000
static

Definition at line 164 of file time.h.

◆ kMicrosecondsPerMinute

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMicrosecondsPerMinute = kMicrosecondsPerSecond * 60
static

Definition at line 167 of file time.h.

◆ kMicrosecondsPerSecond

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMicrosecondsPerSecond
static
Initial value:
static const int64_t kMillisecondsPerSecond
Definition: time.h:163
static const int64_t kMicrosecondsPerMillisecond
Definition: time.h:164

Definition at line 165 of file time.h.

◆ kMicrosecondsPerWeek

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMicrosecondsPerWeek = kMicrosecondsPerDay * 7
static

Definition at line 170 of file time.h.

◆ kMillisecondsPerSecond

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMillisecondsPerSecond = 1000
static

Definition at line 163 of file time.h.

◆ kMultiplier

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kMultiplier = V8_2PART_UINT64_C(0x5, deece66d)
staticprivate

Definition at line 80 of file random-number-generator.h.

◆ kNanosecondsPerMicrosecond

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kNanosecondsPerMicrosecond = 1000
static

Definition at line 171 of file time.h.

◆ kNanosecondsPerSecond

template<typename T , typename S = int>
const int64_t v8::base::FINAL< T, S >::kNanosecondsPerSecond
static
Initial value:
static const int64_t kNanosecondsPerMicrosecond
Definition: time.h:171
static const int64_t kMicrosecondsPerSecond
Definition: time.h:165

Definition at line 172 of file time.h.

◆ mask_

template<typename T , typename S = int>
mask_type v8::base::FINAL< T, S >::mask_
private

Definition at line 63 of file flags.h.

◆ model_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::model_
private

Definition at line 86 of file cpu.h.

◆ mutex_

template<typename T , typename S = int>
Mutex* v8::base::FINAL< T, S >::mutex_
private

Definition at line 208 of file mutex.h.

◆ native_handle_

template<typename T , typename S = int>
NativeHandle v8::base::FINAL< T, S >::native_handle_
private

Definition at line 94 of file condition-variable.h.

◆ NVIDIA

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::NVIDIA = 0x4e
static

Definition at line 47 of file cpu.h.

◆ part_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::part_
private

Definition at line 93 of file cpu.h.

◆ QUALCOMM

template<typename T , typename S = int>
const int v8::base::FINAL< T, S >::QUALCOMM = 0x51
static

Definition at line 48 of file cpu.h.

◆ seed_

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::seed_
private

Definition at line 87 of file random-number-generator.h.

◆ start_ticks_

template<typename T , typename S = int>
TimeTicks v8::base::FINAL< T, S >::start_ticks_
private

Definition at line 89 of file elapsed-timer.h.

◆ stepping_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::stepping_
private

Definition at line 85 of file cpu.h.

◆ ticks_

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::ticks_
private

Definition at line 391 of file time.h.

◆ type_

template<typename T , typename S = int>
int v8::base::FINAL< T, S >::type_
private

Definition at line 90 of file cpu.h.

◆ us_

template<typename T , typename S = int>
int64_t v8::base::FINAL< T, S >::us_
private

Definition at line 280 of file time.h.

◆ vendor_

template<typename T , typename S = int>
char v8::base::FINAL< T, S >::vendor_[13]
private

Definition at line 84 of file cpu.h.


The documentation for this class was generated from the following files: