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

Issue 42441: Made regexp robust against changes to a string's implementation. (Closed)

Created:
11 years, 9 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

RegExps now restart if their input string changes representation during preemption. Cleaned up the handling of strings moving, so strings moved by GC and strings changing representation are handled equivalently.

Patch Set 1 #

Patch Set 2 : Removed unused addition to memory.h #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -273 lines) Patch
M src/jsregexp.h View 1 chunk +1 line, -1 line 1 comment Download
M src/jsregexp.cc View 7 chunks +20 lines, -26 lines 1 comment Download
M src/regexp-macro-assembler-ia32.h View 5 chunks +30 lines, -11 lines 0 comments Download
M src/regexp-macro-assembler-ia32.cc View 18 chunks +192 lines, -138 lines 3 comments Download
M test/cctest/test-api.cc View 5 chunks +172 lines, -4 lines 3 comments Download
M test/cctest/test-regexp.cc View 14 chunks +64 lines, -93 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
Largish review.
11 years, 9 months ago (2009-03-20 10:05:55 UTC) #1
Lasse Reichstein
Largish review.
11 years, 9 months ago (2009-03-20 10:05:56 UTC) #2
Erik Corry
LGTM http://codereview.chromium.org/42441/diff/1008/1009 File src/jsregexp.cc (right): http://codereview.chromium.org/42441/diff/1008/1009#newcode605 Line 605: previous_index); A comment would be in order ...
11 years, 9 months ago (2009-03-20 12:45:42 UTC) #3
Lasse Reichstein
11 years, 9 months ago (2009-03-20 13:26:11 UTC) #4
Addressed issues except:

http://codereview.chromium.org/42441/diff/1008/1013
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/42441/diff/1008/1013#newcode5745
Line 5745: const char* c_source =
Are they more likely to fail?
In any case, that would be another test case, since this one doesn't do GC.

Powered by Google App Engine
This is Rietveld 408576698