• littledan's avatar
    [date] Refactor TimezoneCache to be separate from the OS · ccfe50b9
    littledan authored
    This refactoring is preparatory work to enable ICU to be the backend
    for timezone information rather than system calls. In the process, a
    bit of code duplication that was inserted in the Solaris port patch is
    eliminated here among modern POSIX backends.
    
    One possible performance downside of this patch is that it introduces
    a virtual method call for operations which were previously not virtual
    methods. However, a couple factors mitigate this effect:
    - The DateCache minimizes the need for calls into the TimezoneCache
    - These calls were already not very high performance, as they included
      a system call which requires an RPC to get out of the sandbox, and
      they are surrounded by C++ builtins, which require a JS to C++
      transition.
    - A future transition to ICU, enabled by this refactoring, may improve
      performance by eliminating the system call.
    
    BUG=v8:6031
    
    Review-Url: https://codereview.chromium.org/2731463003
    Cr-Commit-Position: refs/heads/master@{#43588}
    ccfe50b9
Name
Last commit
Last update
..
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-linux.cc Loading commit data...
platform-macos.cc Loading commit data...
platform-openbsd.cc 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...