Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Issue 2731463003: [date] Refactor TimezoneCache to be separate from the OS (Closed)

Created:
3 years, 9 months ago by Dan Ehrenberg
Modified:
3 years, 9 months ago
CC:
v8-reviews_googlegroups.com, Michael Hablich, jgruber, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[date] Refactor TimezoneCache to be separate from the OS 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} Committed: https://chromium.googlesource.com/v8/v8/+/ccfe50b95ae78c9b59d57ba47a734d63a3acb4f6

Patch Set 1 #

Patch Set 2 : Make it work for all other Unixes and Windows #

Patch Set 3 : Add timezone-cache.h #

Patch Set 4 : Add virtual destructor on Windows and add platform-posix.h #

Patch Set 5 : Reverting changes to add a flag #

Patch Set 6 : Move Windows code around #

Patch Set 7 : Properly reference windows function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -188 lines) Patch
M BUILD.gn View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M src/base/platform/platform.h View 1 1 chunk +0 lines, -13 lines 0 comments Download
M src/base/platform/platform-aix.cc View 1 4 chunks +11 lines, -4 lines 0 comments Download
M src/base/platform/platform-cygwin.cc View 1 2 chunks +10 lines, -3 lines 0 comments Download
M src/base/platform/platform-freebsd.cc View 1 1 chunk +2 lines, -21 lines 0 comments Download
M src/base/platform/platform-linux.cc View 1 2 chunks +2 lines, -17 lines 0 comments Download
M src/base/platform/platform-macos.cc View 1 2 chunks +2 lines, -20 lines 0 comments Download
M src/base/platform/platform-openbsd.cc View 1 1 chunk +2 lines, -21 lines 0 comments Download
A src/base/platform/platform-posix.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M src/base/platform/platform-posix.cc View 1 2 chunks +17 lines, -16 lines 0 comments Download
M src/base/platform/platform-qnx.cc View 1 2 chunks +2 lines, -21 lines 0 comments Download
M src/base/platform/platform-solaris.cc View 1 2 chunks +11 lines, -4 lines 0 comments Download
M src/base/platform/platform-win32.cc View 1 2 3 4 5 6 8 chunks +29 lines, -40 lines 0 comments Download
A src/base/timezone-cache.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M src/date.h View 4 chunks +5 lines, -6 lines 0 comments Download
M src/date.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/v8.gyp View 1 2 11 chunks +11 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (25 generated)
Dan Ehrenberg
3 years, 9 months ago (2017-03-02 14:10:13 UTC) #23
ulan
lgtm
3 years, 9 months ago (2017-03-03 13:05:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2731463003/120001
3 years, 9 months ago (2017-03-03 13:24:05 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 13:55:04 UTC) #29
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/v8/v8/+/ccfe50b95ae78c9b59d57ba47a734d63a3a...

Powered by Google App Engine
This is Rietveld 408576698