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

Issue 2126073002: Avoid calling the builtin String.prototype.split in Intl (Closed)

Created:
4 years, 5 months ago by Dan Ehrenberg
Modified:
4 years, 5 months ago
Reviewers:
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

Avoid calling the builtin String.prototype.split in Intl The Intl code previously called the initial value of String.prototype.split for some internal operations. However, this did not have the intended effect as Intl only needs to split strings by strings, but String.prototype.split has integration with Symbol.split for RegExps. This patch replaces the calls of StringSplit in the Intl implementation with direct calls to the %StringSplit runtime function to avoid the issue. R=yangguo@chromium.org BUG=v8:5179 Committed: https://crrev.com/97e8046e444da3e7e4729aa1ee5a4f86d56f69d0 Cr-Commit-Position: refs/heads/master@{#37615}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Call %StringSplit directly at callsites #

Patch Set 3 : Remove stray newline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M src/js/i18n.js View 1 6 chunks +5 lines, -7 lines 0 comments Download
A test/intl/regress-5179.js View 1 2 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
Dan Ehrenberg
4 years, 5 months ago (2016-07-06 22:27:15 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2126073002/1
4 years, 5 months ago (2016-07-06 22:27:24 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/18876)
4 years, 5 months ago (2016-07-06 22:30:55 UTC) #5
Yang
https://codereview.chromium.org/2126073002/diff/1/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2126073002/diff/1/src/js/i18n.js#newcode131 src/js/i18n.js:131: limit = (IS_UNDEFINED(limit)) ? kMaxUint32 : TO_UINT32(limit); I don't ...
4 years, 5 months ago (2016-07-07 09:13:01 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2126073002/20001
4 years, 5 months ago (2016-07-07 17:50:37 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/18964)
4 years, 5 months ago (2016-07-07 17:54:29 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2126073002/40001
4 years, 5 months ago (2016-07-07 18:35:20 UTC) #13
Dan Ehrenberg
https://codereview.chromium.org/2126073002/diff/1/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2126073002/diff/1/src/js/i18n.js#newcode131 src/js/i18n.js:131: limit = (IS_UNDEFINED(limit)) ? kMaxUint32 : TO_UINT32(limit); On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 18:35:42 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 19:14:58 UTC) #16
Yang
lgtm
4 years, 5 months ago (2016-07-08 08:42:30 UTC) #17
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/2126073002/40001
4 years, 5 months ago (2016-07-08 16:48:30 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-08 16:50:09 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 16:53:18 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/97e8046e444da3e7e4729aa1ee5a4f86d56f69d0
Cr-Commit-Position: refs/heads/master@{#37615}

Powered by Google App Engine
This is Rietveld 408576698