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

Issue 10184004: Fix some bugs in accessing details of the lastest regexp (Closed)

Created:
8 years, 8 months ago by Erik Corry
Modified:
8 years, 8 months ago
Reviewers:
ulan
CC:
v8-dev
Visibility:
Public.

Description

Fix some bugs in accessing details of the lastest regexp match. Sometimes were were not updating it when we should and sometimes we were leaving the lastMatchInfoOverride in place when we should be using the updated regular last match info. Small optimization for zero length match in String.prototype.replace. Committed: https://code.google.com/p/v8/source/detail?r=11422

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -32 lines) Patch
M src/macros.py View 1 chunk +1 line, -0 lines 3 comments Download
M src/runtime.cc View 11 chunks +53 lines, -24 lines 2 comments Download
M src/string.js View 3 chunks +38 lines, -8 lines 8 comments Download
M test/mjsunit/regexp-capture-3.js View 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Erik Corry
8 years, 8 months ago (2012-04-23 14:55:53 UTC) #1
ulan
LGTM with comments. https://chromiumcodereview.appspot.com/10184004/diff/1/src/macros.py File src/macros.py (right): https://chromiumcodereview.appspot.com/10184004/diff/1/src/macros.py#newcode199 src/macros.py:199: macro LAST_SUBJECT(array) = ((array)[1]); We can ...
8 years, 8 months ago (2012-04-23 16:59:23 UTC) #2
Erik Corry
https://chromiumcodereview.appspot.com/10184004/diff/1/src/macros.py File src/macros.py (right): https://chromiumcodereview.appspot.com/10184004/diff/1/src/macros.py#newcode199 src/macros.py:199: macro LAST_SUBJECT(array) = ((array)[1]); On 2012/04/23 16:59:23, ulan wrote: ...
8 years, 8 months ago (2012-04-23 18:54:02 UTC) #3
Erik Corry
8 years, 8 months ago (2012-04-23 19:04:06 UTC) #4
https://chromiumcodereview.appspot.com/10184004/diff/1/src/macros.py
File src/macros.py (right):

https://chromiumcodereview.appspot.com/10184004/diff/1/src/macros.py#newcode199
src/macros.py:199: macro LAST_SUBJECT(array) = ((array)[1]);
On 2012/04/23 18:54:02, Erik Corry wrote:
> On 2012/04/23 16:59:23, ulan wrote:
> > We can avoid duplication:
> > macro LAST_SUBJECT(array) = ((array)[LAST_SUBJECT_INDEX]);
> 
> Done.

Spoke too soon.  Our macro system is not advanced enough for this.

Powered by Google App Engine
This is Rietveld 408576698