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

Issue 1627014: Port optimized comparison of a string to a constant single character string t... (Closed)

Created:
10 years, 8 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Port optimized comparison of a string to a constant single character string to X64 platform. Fix small mistake on ia32 platform. Committed: http://code.google.com/p/v8/source/detail?r=4398

Patch Set 1 #

Total comments: 24

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -17 lines) Patch
M src/ia32/codegen-ia32.cc View 2 7 chunks +12 lines, -9 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 2 chunks +157 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
William Hesse
10 years, 8 months ago (2010-04-13 07:28:15 UTC) #1
Lasse Reichstein
LGTM with comments. http://codereview.chromium.org/1627014/diff/1/2 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/1627014/diff/1/2#newcode5317 src/x64/codegen-x64.cc:5317: Condition is_smi = __ CheckSmi(left_reg); Use ...
10 years, 8 months ago (2010-04-13 08:25:01 UTC) #2
William Hesse
http://codereview.chromium.org/1627014/diff/1/2 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/1627014/diff/1/2#newcode5335 src/x64/codegen-x64.cc:5335: // They are symbols, so do identity compare. On ...
10 years, 8 months ago (2010-04-13 12:29:00 UTC) #3
Lasse Reichstein
LGTM http://codereview.chromium.org/1627014/diff/1/2 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/1627014/diff/1/2#newcode5342 src/x64/codegen-x64.cc:5342: __ andl(temp.reg(), You are right that there is ...
10 years, 8 months ago (2010-04-13 12:53:16 UTC) #4
William Hesse
10 years, 8 months ago (2010-04-13 13:42:22 UTC) #5
> You are right that there is a case for an 8-bit immediate value with a 32-bit
> operand, but it's only for signed 8-bit immediate values (-128..127). This
> immediate here is >= 128, so that case does not apply.

OK, changed.

> http://codereview.chromium.org/1627014/diff/5001/6002#newcode2775
> src/ia32/codegen-ia32.cc:2775: __ test(answer.reg(), Operand(answer.reg()));
> These two tests seem to assume that 0 is Smi::FromInt(0).
> Also, doing test(r,r) and cmp(r,0) are completely equivalent, so the branch
> isn't needed.
> Could you change them to just a SmiTest(answer.reg());
That is an ia32 file.  We don't have SmiTest on that platform.  Removed the
branch.

Powered by Google App Engine
This is Rietveld 408576698