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

Issue 2076010: Try flattening strings before comparing for equality. (Closed)

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

Description

Try flattening strings before comparing for equality. Committed: http://code.google.com/p/v8/source/detail?r=4684

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -43 lines) Patch
M src/heap.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 2 chunks +25 lines, -9 lines 0 comments Download
M src/objects.cc View 4 chunks +31 lines, -30 lines 1 comment Download
M src/objects-inl.h View 1 chunk +9 lines, -3 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Vitaly Repeshko
10 years, 7 months ago (2010-05-19 11:28:16 UTC) #1
Mads Ager (chromium)
10 years, 7 months ago (2010-05-19 12:27:43 UTC) #2
LGTM

http://codereview.chromium.org/2076010/diff/1/3
File src/objects-inl.h (right):

http://codereview.chromium.org/2076010/diff/1/3#newcode1694
src/objects-inl.h:1694: if (!StringShape(this).IsCons()) return this;
StringShapes should be deprecated, they were a failed optimization attempt.
Please just use IsConsString() here.

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

http://codereview.chromium.org/2076010/diff/1/4#newcode4590
src/objects.cc:4590: if (StringShape(lhs).IsSequentialAscii() &&
lhs->IsSeqAsciiString() and rhs->IsSeqAsciiString()

Powered by Google App Engine
This is Rietveld 408576698