V8 Project
v8::internal::Version Class Reference

#include <version.h>

+ Collaboration diagram for v8::internal::Version:

Static Public Member Functions

static int GetMajor ()
 
static int GetMinor ()
 
static int GetBuild ()
 
static int GetPatch ()
 
static bool IsCandidate ()
 
static int Hash ()
 
static void GetString (Vector< char > str)
 
static void GetSONAME (Vector< char > str)
 
static const char * GetVersion ()
 

Static Private Attributes

static int major_ = MAJOR_VERSION
 
static int minor_ = MINOR_VERSION
 
static int build_ = BUILD_NUMBER
 
static int patch_ = PATCH_LEVEL
 
static bool candidate_ = (IS_CANDIDATE_VERSION != 0)
 
static const char * soname_ = SONAME
 
static const char * version_string_ = VERSION_STRING
 

Friends

void SetVersion (int major, int minor, int build, int patch, bool candidate, const char *soname)
 

Detailed Description

Definition at line 11 of file version.h.

Member Function Documentation

◆ GetBuild()

static int v8::internal::Version::GetBuild ( )
inlinestatic

Definition at line 16 of file version.h.

16 { return build_; }
static int build_
Definition: version.h:33

References build_.

Referenced by GetSONAME(), and GetString().

+ Here is the caller graph for this function:

◆ GetMajor()

static int v8::internal::Version::GetMajor ( )
inlinestatic

Definition at line 14 of file version.h.

14 { return major_; }
static int major_
Definition: version.h:31

References major_.

Referenced by GetSONAME(), and GetString().

+ Here is the caller graph for this function:

◆ GetMinor()

static int v8::internal::Version::GetMinor ( )
inlinestatic

Definition at line 15 of file version.h.

15 { return minor_; }
static int minor_
Definition: version.h:32

References minor_.

Referenced by GetSONAME(), and GetString().

+ Here is the caller graph for this function:

◆ GetPatch()

static int v8::internal::Version::GetPatch ( )
inlinestatic

Definition at line 17 of file version.h.

17 { return patch_; }
static int patch_
Definition: version.h:34

References patch_.

Referenced by GetSONAME(), and GetString().

+ Here is the caller graph for this function:

◆ GetSONAME()

void v8::internal::Version::GetSONAME ( Vector< char >  str)
static

Definition at line 99 of file version.cc.

99  {
100  if (soname_ == NULL || *soname_ == '\0') {
101  // Generate generic SONAME if no specific SONAME is defined.
102  const char* candidate = IsCandidate() ? "-candidate" : "";
103  if (GetPatch() > 0) {
104  SNPrintF(str, "libv8-%d.%d.%d.%d%s.so",
105  GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate);
106  } else {
107  SNPrintF(str, "libv8-%d.%d.%d%s.so",
108  GetMajor(), GetMinor(), GetBuild(), candidate);
109  }
110  } else {
111  // Use specific SONAME.
112  SNPrintF(str, "%s", soname_);
113  }
114 }
static int GetMajor()
Definition: version.h:14
static int GetBuild()
Definition: version.h:16
static int GetPatch()
Definition: version.h:17
static int GetMinor()
Definition: version.h:15
static const char * soname_
Definition: version.h:36
static bool IsCandidate()
Definition: version.h:18
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
int SNPrintF(Vector< char > str, const char *format,...)
Definition: utils.cc:105

References GetBuild(), GetMajor(), GetMinor(), GetPatch(), IsCandidate(), NULL, v8::internal::SNPrintF(), and soname_.

+ Here is the call graph for this function:

◆ GetString()

void v8::internal::Version::GetString ( Vector< char >  str)
static

Definition at line 79 of file version.cc.

79  {
80  const char* candidate = IsCandidate() ? " (candidate)" : "";
81 #ifdef USE_SIMULATOR
82  const char* is_simulator = " SIMULATOR";
83 #else
84  const char* is_simulator = "";
85 #endif // USE_SIMULATOR
86  if (GetPatch() > 0) {
87  SNPrintF(str, "%d.%d.%d.%d%s%s",
88  GetMajor(), GetMinor(), GetBuild(), GetPatch(), candidate,
89  is_simulator);
90  } else {
91  SNPrintF(str, "%d.%d.%d%s%s",
92  GetMajor(), GetMinor(), GetBuild(), candidate,
93  is_simulator);
94  }
95 }

References GetBuild(), GetMajor(), GetMinor(), GetPatch(), IsCandidate(), and v8::internal::SNPrintF().

+ Here is the call graph for this function:

◆ GetVersion()

static const char* v8::internal::Version::GetVersion ( )
inlinestatic

Definition at line 27 of file version.h.

27 { return version_string_; }
static const char * version_string_
Definition: version.h:37

References version_string_.

Referenced by v8::V8::GetVersion().

+ Here is the caller graph for this function:

◆ Hash()

static int v8::internal::Version::Hash ( )
inlinestatic

Definition at line 19 of file version.h.

19 { return (major_ << 20) ^ (minor_ << 10) ^ patch_; }

References major_, minor_, and patch_.

Referenced by v8::internal::SerializedCodeData::CheckSum().

+ Here is the caller graph for this function:

◆ IsCandidate()

static bool v8::internal::Version::IsCandidate ( )
inlinestatic

Definition at line 18 of file version.h.

18 { return candidate_; }
static bool candidate_
Definition: version.h:35

References candidate_.

Referenced by GetSONAME(), and GetString().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ SetVersion

void SetVersion ( int  major,
int  minor,
int  build,
int  patch,
bool  candidate,
const char *  soname 
)
friend

Member Data Documentation

◆ build_

int v8::internal::Version::build_ = BUILD_NUMBER
staticprivate

Definition at line 33 of file version.h.

Referenced by GetBuild().

◆ candidate_

bool v8::internal::Version::candidate_ = (IS_CANDIDATE_VERSION != 0)
staticprivate

Definition at line 35 of file version.h.

Referenced by IsCandidate().

◆ major_

int v8::internal::Version::major_ = MAJOR_VERSION
staticprivate

Definition at line 31 of file version.h.

Referenced by GetMajor(), and Hash().

◆ minor_

int v8::internal::Version::minor_ = MINOR_VERSION
staticprivate

Definition at line 32 of file version.h.

Referenced by GetMinor(), and Hash().

◆ patch_

int v8::internal::Version::patch_ = PATCH_LEVEL
staticprivate

Definition at line 34 of file version.h.

Referenced by GetPatch(), and Hash().

◆ soname_

const char * v8::internal::Version::soname_ = SONAME
staticprivate

Definition at line 36 of file version.h.

Referenced by GetSONAME().

◆ version_string_

const char * v8::internal::Version::version_string_ = VERSION_STRING
staticprivate

Definition at line 37 of file version.h.

Referenced by GetVersion().


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