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

Issue 554078: Don't pass the "at start" parameter to native RegExp... (Closed)

Created:
10 years, 11 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Don't pass the "at start" parameter to native RegExp As the start index is already passed it is easy to calculate the "at start" boolean in generated code. Also as direct entry has been implemented this needs to be done in generated code anyway, and therefore might as well be moved to the generated code for RegExp. The "at start" value is now calcualted as a local variable on the native RegExp frame based on the value of the start index argument. The x64 version have been tested on both Linux and 64-bit Windows Vista. For ARM I have tested cctest/test-regexp on ARM hardware, but the rest of the tests have only been run on the ARM simulator. Committed: http://code.google.com/p/v8/source/detail?r=3709

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -80 lines) Patch
M src/arm/regexp-macro-assembler-arm.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/arm/regexp-macro-assembler-arm.cc View 1 2 4 chunks +12 lines, -2 lines 0 comments Download
M src/arm/simulator-arm.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 2 chunks +3 lines, -9 lines 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.cc View 1 2 4 chunks +12 lines, -2 lines 0 comments Download
M src/ia32/simulator-ia32.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/regexp-macro-assembler.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/regexp-macro-assembler.cc View 3 chunks +3 lines, -8 lines 0 comments Download
M src/x64/regexp-macro-assembler-x64.h View 4 chunks +6 lines, -8 lines 0 comments Download
M src/x64/regexp-macro-assembler-x64.cc View 1 2 5 chunks +13 lines, -3 lines 0 comments Download
M src/x64/simulator-x64.h View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-regexp.cc View 15 chunks +16 lines, -32 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
10 years, 11 months ago (2010-01-26 09:35:39 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/554078/diff/4001/5010 File src/x64/regexp-macro-assembler-x64.h (right): http://codereview.chromium.org/554078/diff/4001/5010#newcode176 src/x64/regexp-macro-assembler-x64.h:176: static const int kAtStart = kInputStartMinusOne - kPointerSize; ...
10 years, 11 months ago (2010-01-26 10:13:28 UTC) #2
Søren Thygesen Gjesse
10 years, 11 months ago (2010-01-26 10:33:14 UTC) #3
http://codereview.chromium.org/554078/diff/4001/5010
File src/x64/regexp-macro-assembler-x64.h (right):

http://codereview.chromium.org/554078/diff/4001/5010#newcode176
src/x64/regexp-macro-assembler-x64.h:176: static const int kAtStart =
kInputStartMinusOne - kPointerSize;
On 2010/01/26 10:13:28, Lasse Reichstein wrote:
> Please add a comment here saying that the valid values of atStart is 0 (false)
> and 1 (true).

Updated the documentation in all three *.cc files instead describing the local
variable at start.

Powered by Google App Engine
This is Rietveld 408576698