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

Issue 18333012: x64 support for d-to-i (truncated) (Closed)

Created:
7 years, 5 months ago by danno
Modified:
7 years, 5 months ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

x64 support for d-to-i (truncated) R=yangguo@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=15761

Patch Set 1 #

Patch Set 2 : Merge with ToT and fix nits #

Patch Set 3 : Add truncating DoubleToI stub to x64 #

Total comments: 5

Patch Set 4 : Feedback addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -193 lines) Patch
M src/ia32/code-stubs-ia32.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 6 chunks +96 lines, -69 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
A + test/cctest/test-code-stubs.h View 1 2 1 chunk +16 lines, -10 lines 0 comments Download
A + test/cctest/test-code-stubs.cc View 1 2 3 chunks +67 lines, -15 lines 0 comments Download
M test/cctest/test-code-stubs-ia32.cc View 1 1 chunk +1 line, -98 lines 0 comments Download
A test/cctest/test-code-stubs-x64.cc View 1 2 3 1 chunk +149 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Yang
LGTM with comments. https://codereview.chromium.org/18333012/diff/5001/src/x64/code-stubs-x64.cc File src/x64/code-stubs-x64.cc (right): https://codereview.chromium.org/18333012/diff/5001/src/x64/code-stubs-x64.cc#newcode634 src/x64/code-stubs-x64.cc:634: // to calculate the result if ...
7 years, 5 months ago (2013-07-18 14:54:38 UTC) #1
danno
Committed patchset #4 manually as r15761 (presubmit successful).
7 years, 5 months ago (2013-07-19 08:21:49 UTC) #2
danno
7 years, 5 months ago (2013-07-19 08:56:50 UTC) #3
Message was sent while issue was closed.
Feedback addressed, landed

https://codereview.chromium.org/18333012/diff/5001/src/x64/code-stubs-x64.cc
File src/x64/code-stubs-x64.cc (right):

https://codereview.chromium.org/18333012/diff/5001/src/x64/code-stubs-x64.cc#...
src/x64/code-stubs-x64.cc:634: // to calculate the result if ecx is the
requested return register.
On 2013/07/18 14:54:38, Yang wrote:
> comments do not apply to x64 registers

Done.

https://codereview.chromium.org/18333012/diff/5001/src/x64/code-stubs-x64.cc#...
src/x64/code-stubs-x64.cc:671: __ negl(result_reg);
On 2013/07/18 14:54:38, Yang wrote:
> We don't do zero-extension while moving anywhere. Could it happen that the
upper
> 32-bit of the result just carries over?

As discussed, on x64 we ignore the top 32-bits for most operations and
explicitly clear them before we need them if we do.

Powered by Google App Engine
This is Rietveld 408576698