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

Issue 8510005: Simplify StringCharCodeAt in non-crankshaft codegen. (Closed)

Created:
9 years, 1 month ago by Yang
Modified:
9 years, 1 month ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Simplify StringCharCodeAt in non-crankshaft codegen. TEST=test/mjsunit/string-slices.js Committed: http://code.google.com/p/v8/source/detail?r=9936

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -128 lines) Patch
M src/arm/code-stubs-arm.cc View 5 chunks +17 lines, -19 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 4 chunks +2 lines, -6 lines 0 comments Download
M src/arm/ic-arm.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/stub-cache-arm.cc View 4 chunks +2 lines, -6 lines 0 comments Download
M src/code-stubs.h View 5 chunks +3 lines, -8 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 6 chunks +15 lines, -18 lines 1 comment Download
M src/ia32/full-codegen-ia32.cc View 4 chunks +2 lines, -6 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 4 chunks +2 lines, -6 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 5 chunks +17 lines, -18 lines 1 comment Download
M src/x64/full-codegen-x64.cc View 4 chunks +2 lines, -6 lines 0 comments Download
M src/x64/ic-x64.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 4 chunks +2 lines, -6 lines 0 comments Download
M test/mjsunit/string-slices.js View 4 chunks +21 lines, -17 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Yang
The existing implementation of StringCharCodeAt examines the string type. In the case of cons or ...
9 years, 1 month ago (2011-11-09 10:14:58 UTC) #1
Lasse Reichstein
9 years, 1 month ago (2011-11-09 12:48:11 UTC) #2
LGTM

http://codereview.chromium.org/8510005/diff/1/src/ia32/code-stubs-ia32.cc
File src/ia32/code-stubs-ia32.cc (right):

http://codereview.chromium.org/8510005/diff/1/src/ia32/code-stubs-ia32.cc#new...
src/ia32/code-stubs-ia32.cc:5110: // Put smi-tagged index into scratch register.
Remove the comment too.

http://codereview.chromium.org/8510005/diff/1/src/x64/code-stubs-x64.cc
File src/x64/code-stubs-x64.cc (right):

http://codereview.chromium.org/8510005/diff/1/src/x64/code-stubs-x64.cc#newco...
src/x64/code-stubs-x64.cc:4125: STATIC_ASSERT((kStringEncodingMask &
kTwoByteStringTag) == 0);
Could we convert index from smi to int32 here, instead of doing it in two places
below?

http://codereview.chromium.org/8510005/diff/1/test/mjsunit/string-slices.js
File test/mjsunit/string-slices.js (right):

http://codereview.chromium.org/8510005/diff/1/test/mjsunit/string-slices.js#n...
test/mjsunit/string-slices.js:28: // Flags: --string-slices
--expose-externalize-string --allow-natives-syntax
If string-slices is on by default now, we should remove the flag here.

Powered by Google App Engine
This is Rietveld 408576698