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

Issue 547024: RegExp bitmap test for word character. (Closed)

Created:
10 years, 11 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

RegExp bitmap test for word character.

Patch Set 1 #

Patch Set 2 : Changed to char-map. #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -130 lines) Patch
M src/arm/regexp-macro-assembler-arm.cc View 1 1 chunk +43 lines, -53 lines 1 comment Download
M src/assembler.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/assembler.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/ia32/assembler-ia32.h View 1 2 chunks +2 lines, -0 lines 1 comment Download
M src/ia32/assembler-ia32.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/ia32/disasm-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.cc View 1 1 chunk +24 lines, -37 lines 4 comments Download
M src/regexp-macro-assembler.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/regexp-macro-assembler.cc View 1 1 chunk +24 lines, -0 lines 0 comments Download
M src/serialize.cc View 1 1 chunk +6 lines, -2 lines 1 comment Download
M src/x64/assembler-x64.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M src/x64/regexp-macro-assembler-x64.cc View 1 1 chunk +27 lines, -38 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
Smallish review.
10 years, 11 months ago (2010-01-12 16:58:01 UTC) #1
Erik Corry
I think this would be faster and simpler with a byte map instead of a ...
10 years, 11 months ago (2010-01-13 11:52:53 UTC) #2
Lasse Reichstein
Now uses a byte map. Please re-review.
10 years, 11 months ago (2010-01-15 10:18:48 UTC) #3
Erik Corry
LGTM http://codereview.chromium.org/547024/diff/2002/2003 File src/arm/regexp-macro-assembler-arm.cc (right): http://codereview.chromium.org/547024/diff/2002/2003#newcode551 src/arm/regexp-macro-assembler-arm.cc:551: // Table is 128 bits, so all ASCII ...
10 years, 11 months ago (2010-01-15 12:02:09 UTC) #4
Lasse Reichstein
10 years, 11 months ago (2010-01-18 09:56:52 UTC) #5
http://codereview.chromium.org/547024/diff/2002/2009
File src/ia32/regexp-macro-assembler-ia32.cc (right):

http://codereview.chromium.org/547024/diff/2002/2009#newcode547
src/ia32/regexp-macro-assembler-ia32.cc:547: ASSERT_EQ(0,
word_character_map[0]);  // Character '\0' is not a word char.
I'll put it in the comment at the table declaration that entries must be 0 or
255.
The important test here is that '\0' isn't a word character, so it doesn't
matter that:
  is_word_char(character) ::= (character & table[character]) != 0
gives false independently of the table.

Powered by Google App Engine
This is Rietveld 408576698