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

Issue 596122: Some string optimizations: (Closed)

Created:
10 years, 10 months ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Some string optimizations: * Inlined checks for strings and regexps. * Rewrote split for the non-regexp case. * Implemented one-char case for lastIndexOf. Committed: http://code.google.com/p/v8/source/detail?r=3917

Patch Set 1 #

Patch Set 2 : Some cleanup. #

Total comments: 6

Patch Set 3 : Ported to other architectures + review fixes. #

Patch Set 4 : Undo unnecessary optimizations. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -69 lines) Patch
M src/arm/codegen-arm.h View 3 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 3 1 chunk +19 lines, -0 lines 0 comments Download
M src/codegen.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/codegen-ia32.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 2 chunks +21 lines, -5 lines 0 comments Download
M src/macros.py View 1 2 3 3 chunks +7 lines, -1 line 2 comments Download
M src/mips/codegen-mips.h View 3 3 chunks +3 lines, -1 line 0 comments Download
M src/mips/codegen-mips.cc View 3 3 chunks +10 lines, -1 line 0 comments Download
M src/runtime.cc View 1 2 3 3 chunks +39 lines, -5 lines 0 comments Download
M src/runtime.js View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/string.js View 1 2 23 chunks +64 lines, -56 lines 0 comments Download
M src/x64/codegen-x64.h View 3 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 3 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Vitaly Repeshko
Søren, Mads, This change gives about 10% on http://dromaeo.com/?dromaeo-object-string. (Some of the very low hanging ...
10 years, 10 months ago (2010-02-15 23:33:06 UTC) #1
Søren Thygesen Gjesse
LGTM Have you looked at whether there is an increase in code size? http://codereview.chromium.org/596122/diff/2001/3005 File ...
10 years, 10 months ago (2010-02-16 08:22:12 UTC) #2
Vitaly Repeshko
Ported to other architectures. Please take another look. Thanks, Vitaly http://codereview.chromium.org/596122/diff/2001/3005 File src/runtime.cc (right): http://codereview.chromium.org/596122/diff/2001/3005#newcode2495 ...
10 years, 10 months ago (2010-02-17 18:09:12 UTC) #3
Vitaly Repeshko
On 2010/02/17 18:09:12, Vitaly wrote: > Ported to other architectures. Please take another look. Actually, ...
10 years, 10 months ago (2010-02-17 23:10:11 UTC) #4
Vitaly Repeshko
On 2010/02/17 23:10:11, Vitaly wrote: > On 2010/02/17 18:09:12, Vitaly wrote: > > Ported to ...
10 years, 10 months ago (2010-02-18 18:01:10 UTC) #5
Mads Ager (chromium)
LGTM http://codereview.chromium.org/596122/diff/8001/8007 File src/macros.py (right): http://codereview.chromium.org/596122/diff/8001/8007#newcode107 src/macros.py:107: macro TO_STRING_INLINE(arg) = (IS_STRING(%IS_VAR(arg)) ? arg : NonStringToString(arg)); ...
10 years, 10 months ago (2010-02-19 09:56:29 UTC) #6
Vitaly Repeshko
10 years, 10 months ago (2010-02-19 13:12:35 UTC) #7
Thanks! Submitted.


-- Vitaly

http://codereview.chromium.org/596122/diff/8001/8007
File src/macros.py (right):

http://codereview.chromium.org/596122/diff/8001/8007#newcode107
src/macros.py:107: macro TO_STRING_INLINE(arg)     = (IS_STRING(%IS_VAR(arg)) ?
arg : NonStringToString(arg));
On 2010/02/19 09:56:29, Mads Ager wrote:
> Remove extra spaces before '=' on this line.  I would be in favor of removing
> all of the alignment whitespace here, but you don't have to do that in this
> change.

Done.

Powered by Google App Engine
This is Rietveld 408576698