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

Issue 2897013: Avoid a smi check when comparing an unknown to a constant smi for equality on... (Closed)

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

Description

Avoid a smi check when comparing an unknown to a constant smi for equality on ia32 and x64 platforms. Committed: http://code.google.com/p/v8/source/detail?r=5077

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -210 lines) Patch
M src/ia32/codegen-ia32.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 3 chunks +139 lines, -110 lines 0 comments Download
M src/x64/codegen-x64.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 3 2 chunks +127 lines, -100 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
Will fix lint error.
10 years, 5 months ago (2010-07-13 14:19:58 UTC) #1
Mads Ager (chromium)
LGTM Return statement comments below apply to x64 as well. http://codereview.chromium.org/2897013/diff/1/2 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/2897013/diff/1/2#newcode2806 ...
10 years, 5 months ago (2010-07-13 17:21:20 UTC) #2
William Hesse
10 years, 5 months ago (2010-07-15 08:51:04 UTC) #3
Comments all addressed.  Code modified to make the smi case fall through at the
end, in case cc != equal, to avoid a performance regression.

Powered by Google App Engine
This is Rietveld 408576698