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

Issue 2809048: RegExp replace with empty string optimization by Sandholm. (Closed)

Created:
10 years, 5 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

RegExp replace with empty string optimization by Sandholm.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -5 lines) Patch
M src/codegen.h View 1 chunk +1 line, -1 line 0 comments Download
M src/factory.h View 1 chunk +8 lines, -4 lines 0 comments Download
M src/factory.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 chunks +140 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Lasse Reichstein
10 years, 5 months ago (2010-07-02 13:00:10 UTC) #1
William Hesse
10 years, 5 months ago (2010-07-05 11:58:22 UTC) #2
LGTM.

http://codereview.chromium.org/2809048/diff/1/4
File src/runtime.cc (right):

http://codereview.chromium.org/2809048/diff/1/4#newcode2360
src/runtime.cc:2360: if (start == end && ++next > length) break;
Side effects in condition, after shortcutting logical and, is too tricky.

Powered by Google App Engine
This is Rietveld 408576698