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

Issue 955001: Added fast case for shift operations when the left parameter is a double and ... (Closed)

Created:
10 years, 9 months ago by Rico
Modified:
9 years, 6 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Added fast case for shift operations when the left parameter is a double and we know that the right parameter is a smi. Committed: http://code.google.com/p/v8/source/detail?r=4132

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
M src/ia32/codegen-ia32.cc View 1 2 3 4 5 1 chunk +34 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Rico
10 years, 9 months ago (2010-03-15 08:07:11 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/955001/diff/3001/4001 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/955001/diff/3001/4001#newcode1445 src/ia32/codegen-ia32.cc:1445: right->number_info().IsSmi()) { What about the case where left->number_info().IsSmi()? ...
10 years, 9 months ago (2010-03-15 08:45:58 UTC) #2
Rico
As suggested I changed this to be a special case in the existing shift logic ...
10 years, 9 months ago (2010-03-15 12:57:00 UTC) #3
Lasse Reichstein
LGTM http://codereview.chromium.org/955001/diff/4002/11001 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/955001/diff/4002/11001#newcode1502 src/ia32/codegen-ia32.cc:1502: Isn't this dead code if the above if ...
10 years, 9 months ago (2010-03-15 14:13:25 UTC) #4
Rico
10 years, 9 months ago (2010-03-15 14:18:29 UTC) #5
http://codereview.chromium.org/955001/diff/4002/11001
File src/ia32/codegen-ia32.cc (right):

http://codereview.chromium.org/955001/diff/4002/11001#newcode1502
src/ia32/codegen-ia32.cc:1502: 
On 2010/03/15 14:13:25, Lasse Reichstein wrote:
> Isn't this dead code if the above if is true?
> I.e., put it in an else branch.
> That would eliminate the last jump as well.

Done.

Powered by Google App Engine
This is Rietveld 408576698