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

Issue 555131: Port code to load an integer directly from a heap number from ia32 to x64.... (Closed)

Created:
10 years, 11 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Port code to load an integer directly from a heap number from ia32 to x64. For now, this is a direct port from ia32, so there is probably still stuff that can be improved here. Committed: http://code.google.com/p/v8/source/detail?r=3717

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -121 lines) Patch
M src/ia32/codegen-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/assembler-x64.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 11 chunks +272 lines, -121 lines 4 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
10 years, 11 months ago (2010-01-27 12:19:11 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/555131/diff/10/3004 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/555131/diff/10/3004#newcode6323 src/x64/codegen-x64.cc:6323: // Load rcx with zero. We use this ...
10 years, 11 months ago (2010-01-27 13:16:01 UTC) #2
Mads Ager (chromium)
10 years, 11 months ago (2010-01-27 13:33:34 UTC) #3
http://codereview.chromium.org/555131/diff/10/3004
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/555131/diff/10/3004#newcode6323
src/x64/codegen-x64.cc:6323: // Load rcx with zero.  We use this either for the
final shift or
On 2010/01/27 13:16:01, Erik Corry wrote:
> All this stuff could probably be reimplemented in a simpler way loading the
> whole double into a 64 bit register.  On the other hand almost all 64 bit
> processors have SSE3 so it's hardly worth it.

I agree.

http://codereview.chromium.org/555131/diff/10/3004#newcode7493
src/x64/codegen-x64.cc:7493: __ Cmp(rdx, Factory::undefined_value());
On 2010/01/27 13:16:01, Erik Corry wrote:
> You should use CompareRoot here.  It's a tiny bit faster and somewhat more
> compact.  That applies to the other uses of Cmp too.

I always forget that - thanks for pointing it out every time. :)

Done.

Powered by Google App Engine
This is Rietveld 408576698