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

Issue 18551: Optimizes an assembly-language conversion from int to Smi in codegen. (Closed)

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

Description

Optimizes an assembly-language conversion from int to Smi in codegen. Committed: http://code.google.com/p/v8/source/detail?r=1137

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M src/codegen-ia32.cc View 1 chunk +8 lines, -8 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
William Hesse
Also fixes lint issue.
11 years, 11 months ago (2009-01-23 13:52:18 UTC) #1
Mads Ager (chromium)
LGTM
11 years, 11 months ago (2009-01-23 13:56:07 UTC) #2
iposva
http://codereview.chromium.org/18551/diff/1/2 File src/codegen-ia32.cc (right): http://codereview.chromium.org/18551/diff/1/2#newcode1132 Line 1132: ASSERT(kSmiTagSize == times_2); // Adjust code if not ...
11 years, 11 months ago (2009-01-23 16:58:38 UTC) #3
Kevin Millikin (Chromium)
11 years, 11 months ago (2009-01-23 18:48:08 UTC) #4
http://codereview.chromium.org/18551/diff/1/2
File src/codegen-ia32.cc (right):

http://codereview.chromium.org/18551/diff/1/2#newcode1129
Line 1129: __ shl(ebx, shift_value);
It's late in the day so I could be wrong.

Do we really need to shift right kSmiTagSize, shift left shift_value, and then
shift left kSmiTagSize to reapply the tag?  Analogous to a multiply, can't we
just shift the tagged value if the tag is zero?

Powered by Google App Engine
This is Rietveld 408576698