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

Issue 817001: Add 1-element caches to RegExp.exec and String.replace. We... (Closed)

Created:
10 years, 9 months ago by Erik Corry
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add 1-element caches to RegExp.exec and String.replace. We probably want to remove this again if and when Dromaeo is fixed so this strategy doesn't pay off. Committed: http://code.google.com/p/v8/source/detail?r=4083

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -9 lines) Patch
M src/regexp-delay.js View 4 chunks +45 lines, -4 lines 4 comments Download
M src/string.js View 1 chunk +20 lines, -5 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Erik Corry
10 years, 9 months ago (2010-03-10 08:00:41 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/817001/diff/1/2 File src/regexp-delay.js (right): http://codereview.chromium.org/817001/diff/1/2#newcode164 src/regexp-delay.js:164: cachedSubject === string) { I would use %_ObjectEquals ...
10 years, 9 months ago (2010-03-10 08:12:22 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/817001/diff/1/2 File src/regexp-delay.js (right): http://codereview.chromium.org/817001/diff/1/2#newcode162 src/regexp-delay.js:162: if (cachedLastIndex === this.lastIndex && lastIndex is only relevant ...
10 years, 9 months ago (2010-03-10 08:53:24 UTC) #3
Lasse Reichstein
10 years, 9 months ago (2010-03-10 08:55:24 UTC) #4
See also http://codereview.chromium.org/652224/
(which didn't give as impressive results, for some reason).

Powered by Google App Engine
This is Rietveld 408576698