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

Issue 2273953003: Add support for DateTimeFormat.formatToParts (Closed)

Created:
4 years, 4 months ago by jungshik at Google
Modified:
4 years, 3 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

Add support for DateTimeFormat.formatToParts Spec discussion: https://github.com/tc39/ecma402/issues/30 It's in stage 4 and Firefox has already implemented it. For now, it's added to HARMONY_IN_PROGRESS bucket behind '--datetime-format-to-parts' flag. BUG=v8:5244 TEST=intl/date-format/date-format-to-parts.js TEST=test262/intl402/DateTimeFormat/prototype/formatToParts/* Committed: https://crrev.com/a3db819c9e438b3e735a7c9ca659c540ddc003bc Cr-Commit-Position: refs/heads/master@{#39225}

Patch Set 1 #

Patch Set 2 : support literal #

Total comments: 4

Patch Set 3 : use readonly alias for substrings; add HandleScope to a helper function #

Total comments: 2

Patch Set 4 : internalized_string_list, explicit index in kIcu..[] #

Patch Set 5 : more internalized strings #

Total comments: 4

Patch Set 6 : put formatToParts behind a flag #

Patch Set 7 : explain why UDAT_*FILEDS cannot show up #

Total comments: 1

Patch Set 8 : add a test #

Patch Set 9 : rebased #

Patch Set 10 : gyp build and windows compile fixed #

Patch Set 11 : rebased #

Patch Set 12 : fix a typo in gyp #

Patch Set 13 : fix a typo again in gyp; gyp build verified locally #

Patch Set 14 : test all part names #

Patch Set 15 : WiP: passes most of intl402..formatToParts; debug build crashes #

Patch Set 16 : set function length to 0 to pass one more test; debug build still not working #

Patch Set 17 : move to staged bucket to run tests in trybots #

Patch Set 18 : fix debug build: RemovePrototype assertion #

Patch Set 19 : rebased #

Total comments: 12

Patch Set 20 : fix last failing test from test262 #

Patch Set 21 : address review comments: move back to INPROGRESS bucket #

Total comments: 1

Patch Set 22 : update test262.status #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -13 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +13 lines, -2 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +11 lines, -1 line 0 comments Download
M src/heap-symbols.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +17 lines, -3 lines 0 comments Download
M src/i18n.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -6 lines 0 comments Download
A src/js/datetime-format-to-parts.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +16 lines, -0 lines 0 comments Download
M src/js/i18n.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +26 lines, -0 lines 0 comments Download
M src/js/prologue.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-i18n.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +135 lines, -1 line 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M test/intl/assert.js View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
A test/intl/date-format/date-format-to-parts.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 80 (59 generated)
jungshik at Google
Dan, can you take a look? It works, but may not be idomatic v8. So, ...
4 years, 4 months ago (2016-08-24 21:52:06 UTC) #2
jungshik at Google
https://codereview.chromium.org/2273953003/diff/20001/src/runtime/runtime-i18n.cc File src/runtime/runtime-i18n.cc (right): https://codereview.chromium.org/2273953003/diff/20001/src/runtime/runtime-i18n.cc#newcode448 src/runtime/runtime-i18n.cc:448: Isolate* isolate) { I guess it can be converted ...
4 years, 4 months ago (2016-08-24 23:03:35 UTC) #3
Dan Ehrenberg
A couple initial comments, but I didn't do a fully detailed review. https://codereview.chromium.org/2273953003/diff/20001/src/runtime/runtime-i18n.cc File src/runtime/runtime-i18n.cc ...
4 years, 3 months ago (2016-08-25 16:54:46 UTC) #5
jungshik at Google
On 2016/08/25 16:54:46, Dan Ehrenberg wrote: > A couple initial comments, but I didn't do ...
4 years, 3 months ago (2016-08-25 17:49:47 UTC) #6
jungshik at Google
Dan, can you take another look?
4 years, 3 months ago (2016-08-25 22:08:38 UTC) #7
Dan Ehrenberg
On 2016/08/25 at 17:49:47, jshin wrote: > On 2016/08/25 16:54:46, Dan Ehrenberg wrote: > > ...
4 years, 3 months ago (2016-08-25 23:37:29 UTC) #8
jungshik at Google
Dan, can you take another look? I took care of your review comments. https://codereview.chromium.org/2273953003/diff/80001/src/heap-symbols.h File ...
4 years, 3 months ago (2016-08-26 18:19:26 UTC) #10
Dan Ehrenberg
https://codereview.chromium.org/2273953003/diff/80001/src/heap-symbols.h File src/heap-symbols.h (left): https://codereview.chromium.org/2273953003/diff/80001/src/heap-symbols.h#oldcode24 src/heap-symbols.h:24: V(string_to_string, "[object String]") \ On 2016/08/26 at 18:19:26, jungshik ...
4 years, 3 months ago (2016-08-26 19:07:10 UTC) #11
Dan Ehrenberg
lgtm https://codereview.chromium.org/2273953003/diff/120001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2273953003/diff/120001/src/js/i18n.js#newcode1802 src/js/i18n.js:1802: function formatDateToParts(formatter, dateValue) { Nit: The general V8 ...
4 years, 3 months ago (2016-08-29 21:05:07 UTC) #12
Dan Ehrenberg
Did you run the test262 tests against this patch?
4 years, 3 months ago (2016-08-29 21:05:30 UTC) #13
jungshik at Google
On 2016/08/29 21:05:30, Dan Ehrenberg wrote: > Did you run the test262 tests against this ...
4 years, 3 months ago (2016-09-01 17:27:39 UTC) #36
jungshik at Google
In release build, all the test262 tests pass (except for one minor issue with two ...
4 years, 3 months ago (2016-09-02 09:40:50 UTC) #42
jungshik at Google
On 2016/09/02 09:40:50, jungshik at google wrote: > In release build, all the test262 tests ...
4 years, 3 months ago (2016-09-06 18:03:19 UTC) #57
Dan Ehrenberg
Generally looks pretty great, just minor comments. https://codereview.chromium.org/2273953003/diff/360001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2273953003/diff/360001/src/flag-definitions.h#newcode219 src/flag-definitions.h:219: V(datetime_format_to_parts, "Intl.DateTimeFormat.formatToParts") ...
4 years, 3 months ago (2016-09-06 19:39:29 UTC) #60
jungshik at Google
Dan, PTAL. Addressed your comments. https://codereview.chromium.org/2273953003/diff/360001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2273953003/diff/360001/src/flag-definitions.h#newcode219 src/flag-definitions.h:219: V(datetime_format_to_parts, "Intl.DateTimeFormat.formatToParts") \ On ...
4 years, 3 months ago (2016-09-06 21:35:14 UTC) #65
Dan Ehrenberg
lgtm LGTM modulo a one-line fix https://codereview.chromium.org/2273953003/diff/400001/test/test262/test262.status File test/test262/test262.status (left): https://codereview.chromium.org/2273953003/diff/400001/test/test262/test262.status#oldcode462 test/test262/test262.status:462: 'intl402/DateTimeFormat/prototype/formatToParts/*': [SKIP], You ...
4 years, 3 months ago (2016-09-06 21:55:19 UTC) #68
jungshik at Google
On 2016/09/06 21:55:19, Dan Ehrenberg wrote: > lgtm > > LGTM modulo a one-line fix ...
4 years, 3 months ago (2016-09-06 22:05:39 UTC) #70
Dan Ehrenberg
lgtm
4 years, 3 months ago (2016-09-06 22:07:59 UTC) #73
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/2273953003/420001
4 years, 3 months ago (2016-09-06 22:55:12 UTC) #77
commit-bot: I haz the power
Committed patchset #22 (id:420001)
4 years, 3 months ago (2016-09-06 22:56:57 UTC) #78
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 22:57:19 UTC) #80
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/a3db819c9e438b3e735a7c9ca659c540ddc003bc
Cr-Commit-Position: refs/heads/master@{#39225}

Powered by Google App Engine
This is Rietveld 408576698