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

Issue 9969196: Make SubStringStub more robust wrt unsafe arguments. (Closed)

Created:
8 years, 8 months ago by Yang
Modified:
8 years, 8 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Make SubStringStub more robust wrt unsafe arguments. BUG= TEST=test-strings/RobustSubStringStub Committed: https://code.google.com/p/v8/source/detail?r=11349

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -67 lines) Patch
M src/arm/code-stubs-arm.cc View 1 chunk +4 lines, -28 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +5 lines, -1 line 0 comments Download
M src/x64/code-stubs-x64.cc View 2 chunks +5 lines, -38 lines 0 comments Download
M test/cctest/test-strings.cc View 1 chunk +13 lines, -0 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Yang
Also ports changes from https://chromiumcodereview.appspot.com/9625003 (r10957) to X64 and ARM.
8 years, 8 months ago (2012-04-17 07:58:07 UTC) #1
Erik Corry
8 years, 8 months ago (2012-04-17 09:06:58 UTC) #2
LGTM

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

http://codereview.chromium.org/9969196/diff/1/test/cctest/test-strings.cc#new...
test/cctest/test-strings.cc:634: CompileRun("%_SubString('abcdef', 5, 2)");
I'd like more tests here.  Negative numbers, borderline numbers, heap numbers,
input strings large enough to trigger the creation of SlicedStrings, slices of
slices where the args are out of bounds for the slice, but not for the
underlying string.

Powered by Google App Engine
This is Rietveld 408576698