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

Issue 525085: Use generated code to create sub strings (Closed)

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

Description

Use generated code to create sub strings. Added a stub to allocate and fill a string object with a substring from another string. Use the rep movs instruction to copy the string data as it turned out to be the fastest way. While preparing this I experimented with some SSE2 instructions, so the instructions movdqa and movdqu are still in the IA-32 assembler even though they are not used. Committed: http://code.google.com/p/v8/source/detail?r=3554

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -15 lines) Patch
M src/arm/codegen-arm.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/codegen-arm.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M src/code-stubs.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/codegen.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/assembler-ia32.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 2 chunks +52 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.h View 1 3 chunks +41 lines, -8 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 3 chunks +188 lines, -6 lines 0 comments Download
M src/runtime.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/string.js View 1 chunk +1 line, -1 line 0 comments Download
M src/v8-counters.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Thygesen Gjesse
10 years, 11 months ago (2010-01-07 09:10:54 UTC) #1
Mads Ager (chromium)
Remove the jump to runtime for two-byte strings and retest? Remember to file a bug ...
10 years, 11 months ago (2010-01-07 09:26:06 UTC) #2
Søren Thygesen Gjesse
http://codereview.chromium.org/525085/diff/1/4 File src/ia32/assembler-ia32.cc (right): http://codereview.chromium.org/525085/diff/1/4#newcode756 src/ia32/assembler-ia32.cc:756: EMIT(0xF3); On 2010/01/07 09:26:06, Mads Ager wrote: > EnsureSpace ...
10 years, 11 months ago (2010-01-07 09:46:23 UTC) #3
Mads Ager (chromium)
10 years, 11 months ago (2010-01-07 09:50:38 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698