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

Issue 7064017: Add fast cases for flat comparison to String::Is{Ascii,TwoByte}EqualTo. (Closed)

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

Description

Add fast cases for flat comparison to String::Is{Ascii,TwoByte}EqualTo. R=ager@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=8065

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/objects.cc View 2 chunks +6 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
Vitaly Repeshko
9 years, 7 months ago (2011-05-24 00:14:15 UTC) #1
Mads Ager (chromium)
LGTM!
9 years, 7 months ago (2011-05-24 06:19:55 UTC) #2
Erik Corry
9 years, 7 months ago (2011-05-24 07:14:06 UTC) #3
DBC

http://codereview.chromium.org/7064017/diff/1/src/objects.cc
File src/objects.cc (right):

http://codereview.chromium.org/7064017/diff/1/src/objects.cc#newcode5512
src/objects.cc:5512: if (IsFlat() && IsAsciiRepresentation()) {
CompareChars doesn't require that the two strings have the same width, so you
can speed up the operation for ASCII-UC16 and UC16-ASCII comparisons too.

Powered by Google App Engine
This is Rietveld 408576698