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

Issue 2370733003: [regexp] Don't cache exec method in Regexp.proto[@@split] (Closed)

Created:
4 years, 2 months ago by jgruber
Modified:
4 years, 2 months ago
Reviewers:
Dan Ehrenberg
CC:
v8-reviews_googlegroups.com, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Don't cache exec method in Regexp.proto[@@split] The call to RegExpSubclassExec may refer to a different exec method since splitter is newly constructed previously to the call. BUG=v8:5351 Committed: https://crrev.com/515994b8ca5710409bd0a8f21ac64844fea839f0 Cr-Commit-Position: refs/heads/master@{#39774}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M src/js/regexp.js View 2 chunks +2 lines, -5 lines 0 comments Download
A test/mjsunit/regress/regress-5351.js View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
jgruber
4 years, 2 months ago (2016-09-26 14:12:39 UTC) #4
Dan Ehrenberg
https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js File src/js/regexp.js (right): https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js#newcode348 src/js/regexp.js:348: var exec = this.exec; Doesn't this initial, additional read ...
4 years, 2 months ago (2016-09-26 14:16:27 UTC) #5
jgruber
https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js File src/js/regexp.js (right): https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js#newcode348 src/js/regexp.js:348: var exec = this.exec; On 2016/09/26 14:16:27, Dan Ehrenberg ...
4 years, 2 months ago (2016-09-26 14:19:37 UTC) #6
Dan Ehrenberg
https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js File src/js/regexp.js (right): https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js#newcode373 src/js/regexp.js:373: result = RegExpSubclassExec(splitter, string); By not passing exec here, ...
4 years, 2 months ago (2016-09-26 14:30:33 UTC) #7
jgruber
https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js File src/js/regexp.js (right): https://codereview.chromium.org/2370733003/diff/1/src/js/regexp.js#newcode373 src/js/regexp.js:373: result = RegExpSubclassExec(splitter, string); On 2016/09/26 14:30:33, Dan Ehrenberg ...
4 years, 2 months ago (2016-09-26 14:57:23 UTC) #10
Dan Ehrenberg
lgtm OTOH there are already other similar spec violations, and exec was not being read ...
4 years, 2 months ago (2016-09-26 16:33:34 UTC) #11
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/2370733003/20001
4 years, 2 months ago (2016-09-27 13:29:34 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-27 14:02:19 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 14:02:42 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/515994b8ca5710409bd0a8f21ac64844fea839f0
Cr-Commit-Position: refs/heads/master@{#39774}

Powered by Google App Engine
This is Rietveld 408576698