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

Issue 2868046: Fix crash: handle all flat string types in regexp replace. (Closed)

Created:
10 years, 5 months ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Fix crash: handle all flat string types in regexp replace. Committed: http://code.google.com/p/v8/source/detail?r=5025

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -10 lines) Patch
M src/objects.h View 4 chunks +8 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 3 chunks +8 lines, -10 lines 2 comments Download
A test/mjsunit/string-replace-with-empty.js View 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Vitaly Repeshko
10 years, 5 months ago (2010-07-05 17:29:40 UTC) #1
Lasse Reichstein
LGTM, with comments. http://codereview.chromium.org/2868046/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/2868046/diff/1/2#newcode2288 src/runtime.cc:2288: static Object* StringReplaceRegExpWithEmptyString(InputSeqString* subject, Just change ...
10 years, 5 months ago (2010-07-06 06:55:46 UTC) #2
Vitaly Repeshko
On 2010/07/06 06:55:46, Lasse Reichstein wrote: > LGTM, with comments. > > http://codereview.chromium.org/2868046/diff/1/2 > File ...
10 years, 5 months ago (2010-07-06 10:42:21 UTC) #3
Lasse Reichstein
LGTM http://codereview.chromium.org/2868046/diff/5001/6002 File src/runtime.cc (right): http://codereview.chromium.org/2868046/diff/5001/6002#newcode2443 src/runtime.cc:2443: if (subject->IsAsciiRepresentation() || subject->HasOnlyAsciiChars()) { Does subject->IsAsciiRepresentation() imply ...
10 years, 5 months ago (2010-07-06 12:09:36 UTC) #4
Vitaly Repeshko
10 years, 5 months ago (2010-07-06 12:22:39 UTC) #5
Thanks! Submitted.


-- Vitaly

http://codereview.chromium.org/2868046/diff/5001/6002
File src/runtime.cc (right):

http://codereview.chromium.org/2868046/diff/5001/6002#newcode2443
src/runtime.cc:2443: if (subject->IsAsciiRepresentation() ||
subject->HasOnlyAsciiChars()) {
On 2010/07/06 12:09:36, Lasse Reichstein wrote:
> Does subject->IsAsciiRepresentation() imply subject->HasOnlyAsciiChars()?
(I.e.,
> could we do with just HasOnlyAsciiChars?)

Done.

Powered by Google App Engine
This is Rietveld 408576698