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

Issue 2621393002: Move lang-code checking for case-mapping to C++ from JS (Closed)

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

Description

Move lang-code checking for case-mapping to C++ from JS Move the language code checking for 4 languages requiring special case mapping to C++ from JavaScript. This is a speculative fix for crashes reported from Windows and Mac Chrome canary builds when icu-case-mapping is enabled by default. (see crbug.com/676643) In addition, tighten up comparision operators in a couple of places in i18n.js (=== and !== instead of == and !=). BUG=v8:4477, v8:4476, chromium:676643 TEST=test262/{built-ins,intl402}/Strings/*, webkit/fast/js/*, mjsunit/string-case, intl/general/case* Review-Url: https://codereview.chromium.org/2621393002 Cr-Commit-Position: refs/heads/master@{#42246} Committed: https://chromium.googlesource.com/v8/v8/+/db883422c88d1c9c2b0c4991ccc8197d07bc0ba6

Patch Set 1 #

Patch Set 2 : make ConvertToUpper as before #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -38 lines) Patch
M src/js/i18n.js View 2 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/runtime-i18n.cc View 1 3 chunks +54 lines, -28 lines 1 comment Download

Messages

Total messages: 10 (4 generated)
jungshik at Google
Hi Dan, Can you take a look?
3 years, 11 months ago (2017-01-11 19:00:45 UTC) #2
Dan Ehrenberg
lgtm Code looks good to me. Would be nicer with a regression test, but if ...
3 years, 11 months ago (2017-01-11 19:09:20 UTC) #3
jungshik at Google
https://codereview.chromium.org/2621393002/diff/20001/src/runtime/runtime-i18n.cc File src/runtime/runtime-i18n.cc (left): https://codereview.chromium.org/2621393002/diff/20001/src/runtime/runtime-i18n.cc#oldcode1155 src/runtime/runtime-i18n.cc:1155: CONVERT_ARG_HANDLE_CHECKED(SeqOneByteString, lang, 2); From i18n.js, a string "literal" ( ...
3 years, 11 months ago (2017-01-11 19:11:22 UTC) #4
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/2621393002/20001
3 years, 11 months ago (2017-01-11 19:13:01 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/db883422c88d1c9c2b0c4991ccc8197d07bc0ba6
3 years, 11 months ago (2017-01-11 19:42:55 UTC) #9
jungshik at Google
3 years, 11 months ago (2017-01-11 21:28:16 UTC) #10
Message was sent while issue was closed.
On 2017/01/11 19:09:20, Dan Ehrenberg wrote:
> lgtm
> 
> Code looks good to me. Would be nicer with a regression test, but if we can't
> find one, this seems OK to land as is.

I'm afraid it is not possible in v8 alone. If it were possible, it'd have been
caught by multiple tests on Windows trybots. 
I'm setting up a Windows build environment and plan to try reproducing it in
Chrome on Windows. It'd be tricky because I failed to get 
a script source out of any of minidump files from Windows. It could be as simple
as calling toLocale{Upper,Lower}. I may or may not have to set Chrome's UI
locale to one of {el,tr,az,lt}.

Powered by Google App Engine
This is Rietveld 408576698