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

Issue 10831126: Take advantage of batched results when matching global regexp. (Closed)

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

Description

Take advantage of batched results when matching global regexp. BUG= TEST=regexp-global.js Committed: https://code.google.com/p/v8/source/detail?r=12258

Patch Set 1 #

Total comments: 8

Patch Set 2 : use FlattenGetString instead of TryFlattenGetString #

Patch Set 3 : #

Patch Set 4 : addressed comments #

Total comments: 3

Patch Set 5 : addressed comments and formatting changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -780 lines) Patch
M src/arm/code-stubs-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/assembler.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.h View 1 chunk +1 line, -1 line 0 comments Download
M src/jsregexp.h View 1 2 3 4 5 chunks +51 lines, -63 lines 0 comments Download
M src/jsregexp.cc View 1 2 3 4 9 chunks +227 lines, -72 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime.cc View 1 2 16 chunks +269 lines, -638 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-regexp.cc View 2 chunks +2 lines, -1 line 0 comments Download
M test/mjsunit/regexp-global.js View 1 chunk +101 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yang
Please take a look. This CL includes: - rewrite of some cases of String.replace and ...
8 years, 4 months ago (2012-08-02 12:11:53 UTC) #1
ulan
Few nits apart from what we discussed offline. http://codereview.chromium.org/10831126/diff/1/src/jsregexp.h File src/jsregexp.h (right): http://codereview.chromium.org/10831126/diff/1/src/jsregexp.h#newcode123 src/jsregexp.h:123: static ...
8 years, 4 months ago (2012-08-03 07:44:27 UTC) #2
Yang
I addressed the comments and put GlobalCache* and the static vars that store the state ...
8 years, 4 months ago (2012-08-03 11:37:42 UTC) #3
ulan
http://codereview.chromium.org/10831126/diff/3002/src/jsregexp.cc File src/jsregexp.cc (right): http://codereview.chromium.org/10831126/diff/3002/src/jsregexp.cc#newcode661 src/jsregexp.cc:661: output_registers = NewArray<int32_t>(required_registers); Where does this array get released? ...
8 years, 4 months ago (2012-08-03 11:58:05 UTC) #4
Yang
On 2012/08/03 11:58:05, ulan wrote: > http://codereview.chromium.org/10831126/diff/3002/src/jsregexp.cc > File src/jsregexp.cc (right): > > http://codereview.chromium.org/10831126/diff/3002/src/jsregexp.cc#newcode661 > ...
8 years, 4 months ago (2012-08-03 12:58:15 UTC) #5
Yang
http://codereview.chromium.org/10831126/diff/3002/src/jsregexp.cc File src/jsregexp.cc (right): http://codereview.chromium.org/10831126/diff/3002/src/jsregexp.cc#newcode753 src/jsregexp.cc:753: last_match[0] = -1; On 2012/08/03 11:58:05, ulan wrote: > ...
8 years, 4 months ago (2012-08-03 12:58:22 UTC) #6
ulan
8 years, 4 months ago (2012-08-03 14:02:54 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698