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

Issue 1991753002: Replace Utf8Value() with a more efficient method

Created:
4 years, 7 months ago by jungshik at Google
Modified:
4 years, 6 months ago
Reviewers:
Dan Ehrenberg, Yang
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

Replace Utf8Value() with a more efficient method Utf8Value was replaced in the following functions: Runtime_CanonicalizeLanguageTag GetLanguageTagVariants Runtime_InternalDateParse BUG=v8:4983 TEST=intl/numberformat/parse*, intl/dateformat/parse* TEST=test262/intl402/6.2.2_a, test262/intl402/9.2.1_3 CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_noi18n_rel_ng

Patch Set 1 #

Patch Set 2 : more changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -26 lines) Patch
M src/runtime/runtime-i18n.cc View 1 4 chunks +52 lines, -26 lines 2 comments Download

Messages

Total messages: 15 (8 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/1991753002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1991753002/1
4 years, 7 months ago (2016-05-18 21:17:37 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991753002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1991753002/20001
4 years, 7 months ago (2016-05-18 21:37:02 UTC) #7
jungshik at Google
PTAL. Thanks
4 years, 7 months ago (2016-05-18 21:37:42 UTC) #9
Dan Ehrenberg
If the motivation is performance, do you have any performance test results? Microbenchmarks?
4 years, 7 months ago (2016-05-18 21:42:04 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-18 22:38:49 UTC) #12
jungshik at Google
On 2016/05/18 21:42:04, Dan Ehrenberg wrote: > If the motivation is performance, do you have ...
4 years, 7 months ago (2016-05-18 22:44:03 UTC) #13
Yang
4 years, 6 months ago (2016-05-30 11:01:49 UTC) #15
https://codereview.chromium.org/1991753002/diff/20001/src/runtime/runtime-i18...
File src/runtime/runtime-i18n.cc (right):

https://codereview.chromium.org/1991753002/diff/20001/src/runtime/runtime-i18...
src/runtime/runtime-i18n.cc:70: CopyChars(dest, flat.ToUC16Vector().start(),
length);
Do we not care about clamping uc16 characters to char? This could give false
positives. For example "\uAB64\uAB65-DE" would result in the same as "de-DE".

https://codereview.chromium.org/1991753002/diff/20001/src/runtime/runtime-i18...
src/runtime/runtime-i18n.cc:84: // CONVERT_ARG_HANDLE_CHECKED(SeqOneByteString,
locale_id_str, 0);
Please remove this line.

Powered by Google App Engine
This is Rietveld 408576698