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

Issue 6625084: ARM: Improved double to integer truncation.... (Closed)

Created:
9 years, 9 months ago by m.m.capewell
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

ARM: Improved double to integer truncation. Patch from ARM Ltd. BUG=none TEST=Added to cctest/test-assembler-arm.cc and cctest/test-disasm-arm.cc

Patch Set 1 #

Total comments: 21

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -139 lines) Patch
M src/arm/assembler-arm.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/assembler-arm.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 1 chunk +6 lines, -57 lines 0 comments Download
M src/arm/constants-arm.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/arm/disasm-arm.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/arm/lithium-arm.h View 1 2 chunks +11 lines, -5 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 chunks +12 lines, -6 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 3 chunks +68 lines, -65 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 1 2 chunks +26 lines, -5 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 1 chunk +115 lines, -0 lines 0 comments Download
M src/arm/simulator-arm.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M test/cctest/test-assembler-arm.cc View 1 3 chunks +14 lines, -0 lines 0 comments Download
M test/cctest/test-disasm-arm.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
m.m.capewell
9 years, 9 months ago (2011-03-08 14:25:19 UTC) #1
fschneider
drive-by comment: Since the code for the truncating conversion is quite long and we generally ...
9 years, 9 months ago (2011-03-08 14:39:23 UTC) #2
Søren Thygesen Gjesse
Karl, you have looked into truncation for binary operations, so could you please do the ...
9 years, 9 months ago (2011-03-08 16:15:03 UTC) #3
Karl Klose
Yes, I will do the review.
9 years, 9 months ago (2011-03-08 16:40:13 UTC) #4
Karl Klose
http://codereview.chromium.org/6625084/diff/1/src/arm/assembler-arm.h File src/arm/assembler-arm.h (right): http://codereview.chromium.org/6625084/diff/1/src/arm/assembler-arm.h#newcode994 src/arm/assembler-arm.h:994: const Condition cond = al); The vneg instruction should ...
9 years, 9 months ago (2011-03-09 10:37:51 UTC) #5
m.m.capewell
9 years, 9 months ago (2011-03-14 18:07:22 UTC) #6
Alexandre
Thanks for the review. The code changed significatively from the previous patch. Mainly, the truncation ...
9 years, 9 months ago (2011-03-15 08:45:39 UTC) #7
Karl Klose
9 years, 9 months ago (2011-03-15 10:18:03 UTC) #8
The new patch looks good to me, I am going to commit it.

I am not sure whether adding a stub would be better for the current code. I will
commit the code as is and we can add the stub later, if it is faster.

Adding the vneg operation is fine, I think, as there are a few places where we
could use it.

Powered by Google App Engine
This is Rietveld 408576698