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

Issue 2738503008: Prepare for ICU's switch to char16_t (Closed)

Created:
3 years, 9 months ago by jungshik at Google
Modified:
3 years, 9 months ago
CC:
v8-reviews_googlegroups.com, mscherer, aheninger
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Prepare for ICU's switch to char16_t ICU's UChar was uint16_t (non-Win) or wchar_t (Windows). It's switching to char16_t in both C/C++ API. It needs some changes. Fortunately, v8 needs only a couple of changes because v8 has been using reinterpret_cast in many places calling ICU API. This change was confirmed to work fine with ICU-59-to-be. BUG=v8:6062 TEST=trybot Review-Url: https://codereview.chromium.org/2738503008 Cr-Commit-Position: refs/heads/master@{#43707} Committed: https://chromium.googlesource.com/v8/v8/+/fd5b3e755df541b44128caed625215017ef59989

Patch Set 1 #

Patch Set 2 : With ICU rolled to ICU-59-to-be. #

Patch Set 3 : fix format #

Total comments: 1

Patch Set 4 : Use UnicodeString for compare and use toUCharPtr with ICU >= 59 #

Patch Set 5 : do not include uvernum.h in runtime-i18n.cc : no longer necessary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -5 lines) Patch
M src/i18n.cc View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download
M src/runtime/runtime-i18n.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (25 generated)
jungshik at Google
Hi Adam and Yang, Can you take a look? This is no-op as long as ...
3 years, 9 months ago (2017-03-08 22:06:07 UTC) #10
jungshik at Google
Or, Dan can take a look, too. Dan, for your i18n work and ICU API ...
3 years, 9 months ago (2017-03-08 22:07:54 UTC) #12
jungshik at Google
Or, Dan can take a look, too. Dan, for your i18n work and ICU API ...
3 years, 9 months ago (2017-03-08 22:07:57 UTC) #13
jungshik at Google
On 2017/03/08 22:07:57, jungshik at Google wrote: > Or, Dan can take a look, too. ...
3 years, 9 months ago (2017-03-08 22:09:14 UTC) #14
jungshik at Google
https://codereview.chromium.org/2738503008/diff/40001/src/runtime/runtime-i18n.cc File src/runtime/runtime-i18n.cc (right): https://codereview.chromium.org/2738503008/diff/40001/src/runtime/runtime-i18n.cc#newcode621 src/runtime/runtime-i18n.cc:621: GetUCharBufferFromFlat(flat2, &sap2, length2)); Markus, can you change (or add ...
3 years, 9 months ago (2017-03-08 22:56:53 UTC) #18
jungshik at Google
On 2017/03/08 22:56:53, jungshik at Google wrote: > https://codereview.chromium.org/2738503008/diff/40001/src/runtime/runtime-i18n.cc > File src/runtime/runtime-i18n.cc (right): > > ...
3 years, 9 months ago (2017-03-08 23:48:09 UTC) #21
jungshik at Google
PS #5 should be good to go. Can you take a look?
3 years, 9 months ago (2017-03-09 01:09:18 UTC) #26
mscherer
LGTM An alternative to the version checks might be to clone char16ptr.h, change it to ...
3 years, 9 months ago (2017-03-09 17:11:12 UTC) #30
adamk
lgtm
3 years, 9 months ago (2017-03-09 19:56:04 UTC) #31
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/2738503008/80001
3 years, 9 months ago (2017-03-09 19:59:37 UTC) #33
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 20:01:22 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/fd5b3e755df541b44128caed625215017ef...

Powered by Google App Engine
This is Rietveld 408576698