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

Issue 1207004: Cache regular expressions used in String.search. (Closed)

Created:
10 years, 9 months ago by antonm
Modified:
9 years, 4 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Cache regular expressions used in String.search.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M src/string.js View 1 chunk +8 lines, -1 line 3 comments Download

Messages

Total messages: 3 (0 generated)
sandholm
drive-by comments Lasse/Erik, is there some way we can make use of the regexp code ...
10 years, 9 months ago (2010-03-25 05:36:24 UTC) #1
Lasse Reichstein
http://codereview.chromium.org/1207004/diff/1/2 File src/string.js (right): http://codereview.chromium.org/1207004/diff/1/2#newcode535 src/string.js:535: var last_idx = regexp.lastIndex; // keep old lastIndex Use: ...
10 years, 9 months ago (2010-03-25 08:05:13 UTC) #2
Lasse Reichstein
10 years, 9 months ago (2010-03-25 08:53:11 UTC) #3
http://codereview.chromium.org/1207004/diff/1/2
File src/string.js (right):

http://codereview.chromium.org/1207004/diff/1/2#newcode535
src/string.js:535: var last_idx = regexp.lastIndex; // keep old lastIndex
I'll just make a changelist for this on its own.

Powered by Google App Engine
This is Rietveld 408576698