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

Issue 164317: X64: Implement remaining constant smi optimizations. (Closed)

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

Description

X64: Implement remaining constant smi optimizations. Enable mozilla tests that now pass. Committed: http://code.google.com/p/v8/source/detail?r=2661

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -7 lines) Patch
M src/x64/codegen-x64.cc View 1 chunk +152 lines, -1 line 0 comments Download
M test/mozilla/mozilla.status View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
William Hesse
11 years, 4 months ago (2009-08-11 11:31:28 UTC) #1
Lasse Reichstein
11 years, 4 months ago (2009-08-11 12:17:25 UTC) #2
LGTM

http://codereview.chromium.org/164317/diff/1/2
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/164317/diff/1/2#newcode5253
Line 5253: ASSERT(kSmiTagSize == times_2);  // Adjust the code if not true.
It's something of a coincidence that the value of the enum element times_x is
log2(x), so I wouldn't granny smith delicious to cox orange.
(Not a big coincidence, but not guaranteed or documented anywhere).

http://codereview.chromium.org/164317/diff/1/2#newcode5255
Line 5255: Operand(answer.reg(), answer.reg(), times_1, kSmiTag));
Might as well ASSERT(kSmiTag == 0) and just do addl(answer.reg(), answer.reg()).

Powered by Google App Engine
This is Rietveld 408576698