• Gabriel Charette's avatar
    Bring Time(Delta)::Min/Max() and related helpers to V8. · db73d446
    Gabriel Charette authored
    Copied as-is modulo compile tweaks from Chromium's base.
    
    Copied tests highlighting existing overflow issues with V8's impl...
    
    TimeDelta::Max() will initially be used in V8 to flag events that
    never triggered in a TimedHistogram.
    
    Also constexpr'ed a few things while I was in there, it's harmless
    at worst and helps a little at best.
    Ideally would constexpr all the Time*::From*() methods like in
    Chromium but that has inlining implications and I don't know the
    impact that could have on V8.
    
    Bug: chromium:807606
    Change-Id: If5aa92759d985be070e12af4dd20f0159169048b
    Reviewed-on: https://chromium-review.googlesource.com/899342Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
    Commit-Queue: Gabriel Charette <gab@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51073}
    db73d446
Name
Last commit
Last update
..
OWNERS Loading commit data...
condition-variable.cc Loading commit data...
condition-variable.h Loading commit data...
elapsed-timer.h Loading commit data...
mutex.cc Loading commit data...
mutex.h Loading commit data...
platform-aix.cc Loading commit data...
platform-cygwin.cc Loading commit data...
platform-freebsd.cc Loading commit data...
platform-fuchsia.cc Loading commit data...
platform-linux.cc Loading commit data...
platform-macos.cc Loading commit data...
platform-openbsd.cc Loading commit data...
platform-posix-time.cc Loading commit data...
platform-posix-time.h Loading commit data...
platform-posix.cc Loading commit data...
platform-posix.h Loading commit data...
platform-qnx.cc Loading commit data...
platform-solaris.cc Loading commit data...
platform-win32.cc Loading commit data...
platform.h Loading commit data...
semaphore.cc Loading commit data...
semaphore.h Loading commit data...
time.cc Loading commit data...
time.h Loading commit data...