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

Issue 12807: * Fixes and tweaks to regexp-ia32. (Closed)

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

Description

Fixes (last?) bugs in regexp-ia32 core functionality. All tests run!

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -83 lines) Patch
M src/assembler-ia32.h View 2 chunks +6 lines, -1 line 0 comments Download
M src/assembler-ia32.cc View 2 chunks +23 lines, -2 lines 0 comments Download
M src/jsregexp.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M src/regexp-macro-assembler-ia32.h View 3 chunks +14 lines, -4 lines 0 comments Download
M src/regexp-macro-assembler-ia32.cc View 23 chunks +73 lines, -38 lines 8 comments Download
M src/regexp-macro-assembler-tracer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-regexp.cc View 14 chunks +56 lines, -32 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
Small code review.
12 years ago (2008-11-28 16:14:19 UTC) #1
Erik Corry
LGTM. Does it run the Mozilla tests too? http://codereview.chromium.org/12807/diff/1/5 File src/regexp-macro-assembler-ia32.cc (right): http://codereview.chromium.org/12807/diff/1/5#newcode141 Line 141: ...
12 years ago (2008-11-30 19:39:26 UTC) #2
Lasse Reichstein
12 years ago (2008-12-04 15:18:37 UTC) #3
http://codereview.chromium.org/12807/diff/1/5
File src/regexp-macro-assembler-ia32.cc (right):

http://codereview.chromium.org/12807/diff/1/5#newcode141
Line 141: ReadCurrentChar(eax);
The ReadCurrentChar function merely moves the already loaded  value into a
register. It's a simple abstraction on top of the "edx" register, but probably
one that has outlived its usefullness. I have reworded it to "mov(eax,
current_character())", where "current_character()" is just a more readable way
of saying "edx".

http://codereview.chromium.org/12807/diff/1/5#newcode169
Line 169: __ test(Operand(ebp, kAtStart), Immediate(0xffffffff));
On 2008/11/30 19:39:27, Erik Corry wrote:
> I think a cmp against zero is less confusing here.

Done.

http://codereview.chromium.org/12807/diff/1/8
File test/cctest/test-regexp.cc (right):

http://codereview.chromium.org/12807/diff/1/8#newcode606
Line 606: *code, seq_input.location(), start_offset, end_offset, captures,
true);
On 2008/11/30 19:39:27, Erik Corry wrote:
> Although the style guide is not strict on this point, V8 style has been to
> either have the entire call on one line or to have a line per argument, but
not
> this compromise format.  Please reformat.  Also several other places.

Done.

Powered by Google App Engine
This is Rietveld 408576698