File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1111#define V8_MAJOR_VERSION 5
1212#define V8_MINOR_VERSION 4
1313#define V8_BUILD_NUMBER 500
14- #define V8_PATCH_LEVEL 44
14+ #define V8_PATCH_LEVEL 45
1515
1616// Use 1 for candidates and 0 otherwise.
1717// (Boolean macro values are not supported by all preprocessors.)
Original file line number Diff line number Diff line change @@ -639,7 +639,7 @@ bool TimeTicks::IsHighResolutionClockWorking() {
639639
640640bool ThreadTicks::IsSupported () {
641641#if (defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)) || \
642- defined (V8_OS_MACOSX) || defined (V8_OS_ANDROID)
642+ defined (V8_OS_MACOSX) || defined (V8_OS_ANDROID) || defined (V8_OS_SOLARIS )
643643 return true ;
644644#elif defined(V8_OS_WIN)
645645 return IsSupportedWin ();
@@ -655,6 +655,8 @@ ThreadTicks ThreadTicks::Now() {
655655#elif (defined(_POSIX_THREAD_CPUTIME) && (_POSIX_THREAD_CPUTIME >= 0)) || \
656656 defined (V8_OS_ANDROID)
657657 return ThreadTicks (ClockNow (CLOCK_THREAD_CPUTIME_ID));
658+ #elif V8_OS_SOLARIS
659+ return ThreadTicks (gethrvtime () / Time::kNanosecondsPerMicrosecond );
658660#elif V8_OS_WIN
659661 return ThreadTicks::GetForThread (::GetCurrentThread ());
660662#else
You can’t perform that action at this time.
0 commit comments