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

Issue 1985423003: Invalidate defaultObjects if timezone changes (Closed)

Created:
4 years, 7 months ago by pgorszkowski
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Invalidate defaultObjects if timezone changes In case of calling 'toLocaleString', 'toLocaleTimeString' and 'toLocaleDateString' functions of 'Date' with empty 'locales' and 'options', DateTimeFormat is cached inside 'defaultObjects'. If we change the timezone the cache is not invalidated. BUG=v8:5022 TEST=cctest:DateCacheVersion. See the bug CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_noi18n_rel_ng Committed: https://crrev.com/7afd712ae01cb40aa233ab80dad1b69a8b72a76c Cr-Commit-Position: refs/heads/master@{#36420}

Patch Set 1 #

Patch Set 2 : added missing checkDateCacheCurrent in cachedOrNewService #

Patch Set 3 : added unit test for function DateCacheVersion #

Total comments: 4

Patch Set 4 : fixes after review+DateCacheVersion should be called each time in checkDateCacheCurrent #

Total comments: 6

Patch Set 5 : fixes after review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -1 line) Patch
M src/js/i18n.js View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-i18n.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M test/cctest/test-date.cc View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985423003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1985423003/40001
4 years, 7 months ago (2016-05-18 14:48:41 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-18 15:22:19 UTC) #6
jungshik at Google
Thanks. Actually, I was planning to add something similar to this to my WiP CL ...
4 years, 7 months ago (2016-05-18 17:29:42 UTC) #7
jungshik at Google
On 2016/05/18 17:29:42, jshin (jungshik at google) wrote: > Thanks. Actually, I was planning to ...
4 years, 7 months ago (2016-05-18 17:34:06 UTC) #10
Dan Ehrenberg
Do you have an idea of the performance impact in the normal case where you ...
4 years, 7 months ago (2016-05-18 17:39:57 UTC) #11
jungshik at Google
On 2016/05/18 17:39:57, Dan Ehrenberg wrote: > Do you have an idea of the performance ...
4 years, 7 months ago (2016-05-18 18:06:31 UTC) #12
jungshik at Google
On 2016/05/18 18:06:31, jshin (jungshik at google) wrote: > On 2016/05/18 17:39:57, Dan Ehrenberg wrote: ...
4 years, 7 months ago (2016-05-18 18:15:46 UTC) #13
jungshik at Google
On 2016/05/18 18:15:46, jshin (jungshik at google) wrote: > On 2016/05/18 18:06:31, jshin (jungshik at ...
4 years, 7 months ago (2016-05-18 19:59:24 UTC) #14
pgorszkowski
https://codereview.chromium.org/1985423003/diff/40001/src/runtime/runtime-date.cc File src/runtime/runtime-date.cc (right): https://codereview.chromium.org/1985423003/diff/40001/src/runtime/runtime-date.cc#newcode55 src/runtime/runtime-date.cc:55: isolate->factory()->NewJSObject(isolate->array_function()); On 2016/05/18 17:39:57, Dan Ehrenberg wrote: > Why ...
4 years, 7 months ago (2016-05-19 11:07:57 UTC) #17
Dan Ehrenberg
lgtm In conversation with jshin, sounds like the perf degradation would be insignificant and the ...
4 years, 7 months ago (2016-05-19 19:59:03 UTC) #18
jungshik at Google
LGTM 2 !
4 years, 7 months ago (2016-05-19 20:13:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985423003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1985423003/60001
4 years, 7 months ago (2016-05-19 20:13:20 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_nosnap_shared_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_rel_ng/builds/1987) v8_win_nosnap_shared_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 7 months ago (2016-05-19 20:32:12 UTC) #23
pgorszkowski
On 2016/05/19 20:32:12, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 7 months ago (2016-05-19 20:34:59 UTC) #24
jungshik at Google
Sorry that I missed one problem. Fortunately, trybot (Asan) caught it. See the comment below. ...
4 years, 7 months ago (2016-05-19 22:10:31 UTC) #25
jungshik at Google
https://codereview.chromium.org/1985423003/diff/60001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/1985423003/diff/60001/src/js/i18n.js#newcode2001 src/js/i18n.js:2001: var date_cache_version_holder = %DateCacheVersion(); nit: What's returned by DateCacheVersion ...
4 years, 7 months ago (2016-05-19 23:11:58 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985423003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1985423003/80001
4 years, 7 months ago (2016-05-20 08:56:35 UTC) #29
pgorszkowski
https://codereview.chromium.org/1985423003/diff/40001/src/runtime/runtime-date.cc File src/runtime/runtime-date.cc (right): https://codereview.chromium.org/1985423003/diff/40001/src/runtime/runtime-date.cc#newcode39 src/runtime/runtime-date.cc:39: RUNTIME_FUNCTION(Runtime_DateCacheVersion) { On 2016/05/18 17:39:57, Dan Ehrenberg wrote: > ...
4 years, 7 months ago (2016-05-20 13:14:00 UTC) #31
pgorszkowski
https://codereview.chromium.org/1985423003/diff/60001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/1985423003/diff/60001/src/js/i18n.js#newcode2001 src/js/i18n.js:2001: var date_cache_version_holder = %DateCacheVersion(); On 2016/05/19 23:11:58, jshin (jungshik ...
4 years, 7 months ago (2016-05-20 13:14:56 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985423003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1985423003/80001
4 years, 7 months ago (2016-05-20 17:13:08 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-20 17:47:31 UTC) #37
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 17:47:55 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7afd712ae01cb40aa233ab80dad1b69a8b72a76c
Cr-Commit-Position: refs/heads/master@{#36420}

Powered by Google App Engine
This is Rietveld 408576698