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

Issue 7832002: Enable slices of external strings (in the tentative implementation). (Closed)

Created:
9 years, 3 months ago by Yang
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Enable slices of external strings (in the tentative implementation). TEST=cctest test-strings/SliceFromExternal, mjsunit/string-slices.js Committed: http://code.google.com/p/v8/source/detail?r=9295

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -19 lines) Patch
M src/heap.cc View 3 chunks +14 lines, -13 lines 2 comments Download
M src/runtime.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-strings.cc View 1 chunk +30 lines, -0 lines 3 comments Download
M test/mjsunit/string-slices.js View 1 chunk +10 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
The problem with slice having a different encoding that the backing string (due to externalizing) ...
9 years, 3 months ago (2011-09-02 15:06:02 UTC) #1
Yang
On 2011/09/02 15:06:02, Yang wrote: > The problem with slice having a different encoding that ...
9 years, 3 months ago (2011-09-12 13:55:52 UTC) #2
Vitaly Repeshko
LGTM if we have good test coverage. http://codereview.chromium.org/7832002/diff/1/src/heap.cc File src/heap.cc (right): http://codereview.chromium.org/7832002/diff/1/src/heap.cc#newcode2669 src/heap.cc:2669: // The ...
9 years, 3 months ago (2011-09-13 18:20:25 UTC) #3
Yang
9 years, 3 months ago (2011-09-15 11:01:22 UTC) #4
Updated those comments. Test coverage is given imo. I'll land.

http://codereview.chromium.org/7832002/diff/1/test/cctest/test-strings.cc
File test/cctest/test-strings.cc (right):

http://codereview.chromium.org/7832002/diff/1/test/cctest/test-strings.cc#new...
test/cctest/test-strings.cc:517: TEST(SliceFromExternal) {
On 2011/09/13 18:20:25, Vitaly Repeshko wrote:
> Do we have a test for the case of the underlying string changing its encoding
> from ASCII to two-byte?

Both the cctest test-api/MorphCompositeStringTest and the last part of
mjsunit/string-slices.js test this.

Powered by Google App Engine
This is Rietveld 408576698