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

Issue 7518: String equality improvements. (Closed)

Created:
12 years, 2 months ago by Christian Plesner Hansen
Modified:
9 years, 7 months ago
Reviewers:
bak, Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Added string equality by reading int-sized blocks of characters for flat strings with the same representation.

Patch Set 1 #

Patch Set 2 : Fixed lint issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -4 lines) Patch
M src/objects.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 chunks +64 lines, -4 lines 5 comments Download
M src/objects-inl.h View 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Christian Plesner Hansen
12 years, 2 months ago (2008-10-20 09:19:30 UTC) #1
Erik Corry
http://codereview.chromium.org/7518/diff/202/9 File src/objects.cc (right): http://codereview.chromium.org/7518/diff/202/9#newcode3662 Line 3662: for (i = 0; i <= endpoint; i ...
12 years, 2 months ago (2008-10-20 09:40:04 UTC) #2
Christian Plesner Hansen
http://codereview.chromium.org/7518/diff/202/9 File src/objects.cc (right): http://codereview.chromium.org/7518/diff/202/9#newcode3662 Line 3662: for (i = 0; i <= endpoint; i ...
12 years, 2 months ago (2008-10-20 09:52:09 UTC) #3
bak
12 years, 2 months ago (2008-10-20 10:50:42 UTC) #4
LGTM,
  Lars

http://codereview.chromium.org/7518/diff/202/9
File src/objects.cc (right):

http://codereview.chromium.org/7518/diff/202/9#newcode3652
Line 3652: static inline bool CompareRawStringContents(Vector<Char> a,
Vector<Char> b) {
How about an assert checking a.length() == b.length()?

http://codereview.chromium.org/7518/diff/202/9#newcode3665
Line 3665: if (wa != wb)
Move return false to previous line or add {}.

http://codereview.chromium.org/7518/diff/202/9#newcode3669
Line 3669: for (; i < length; i++)
Missing {}

Powered by Google App Engine
This is Rietveld 408576698