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

Issue 12406: Case independent back references. (Closed)

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

Description

Case independent back references.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -10 lines) Patch
M src/assembler-irregexp.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler-irregexp.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/bytecodes-irregexp.h View 1 chunk +7 lines, -6 lines 0 comments Download
M src/interpreter-irregexp.cc View 3 chunks +36 lines, -0 lines 1 comment Download
M src/jsregexp.cc View 1 chunk +6 lines, -1 line 1 comment Download
M src/regexp-macro-assembler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler-ia32.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler-ia32.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M src/regexp-macro-assembler-irregexp.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler-irregexp.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Erik Corry
12 years, 1 month ago (2008-11-24 20:03:47 UTC) #1
Christian Plesner Hansen
12 years ago (2008-11-25 08:18:45 UTC) #2
Lgtm.

http://codereview.chromium.org/12406/diff/1/7
File src/interpreter-irregexp.cc (right):

http://codereview.chromium.org/12406/diff/1/7#newcode45
Line 45: static bool BackRefMatchesNoCase(int from,
If we were concerned about performance we could consider comparing compares
old_char and new_char before canonicalization, as an expected fast case.

http://codereview.chromium.org/12406/diff/1/10
File src/jsregexp.cc (right):

http://codereview.chromium.org/12406/diff/1/10#newcode1477
Line 1477: if (!compiler->is_case_independent()) {
Why negate the condition?

Powered by Google App Engine
This is Rietveld 408576698