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

Issue 6347007: ARM: Implement Math.abs in lithium code generator for the integer and (Closed)

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

Description

ARM: Implement Math.abs in lithium code generator for the integer and tagged case. I couldn't find a way to test the double case yet so I'm leaving that unimplemented for now. Committed: http://code.google.com/p/v8/source/detail?r=6411

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressing Alexandre's comments. #

Patch Set 3 : Remove unused method. #

Patch Set 4 : Fix compile #

Total comments: 2

Patch Set 5 : Don't save registers for positive numbers. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -28 lines) Patch
M src/arm/frames-arm.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 1 chunk +102 lines, -2 lines 1 comment Download
M src/arm/macro-assembler-arm.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 3 chunks +19 lines, -23 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mads Ager (chromium)
9 years, 11 months ago (2011-01-19 15:31:21 UTC) #1
Alexandre
Here are a few comments. I'll add full support for vabs when this lands. Regards, ...
9 years, 11 months ago (2011-01-19 16:34:45 UTC) #2
Mads Ager (chromium)
Thanks for your comments Alexandre! http://codereview.chromium.org/6347007/diff/1/src/arm/lithium-codegen-arm.cc File src/arm/lithium-codegen-arm.cc (right): http://codereview.chromium.org/6347007/diff/1/src/arm/lithium-codegen-arm.cc#newcode2365 src/arm/lithium-codegen-arm.cc:2365: __ mov(tmp, Operand(input)); On ...
9 years, 11 months ago (2011-01-20 07:32:17 UTC) #3
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/6347007/diff/1/src/arm/assembler-arm.h File src/arm/assembler-arm.h (right): http://codereview.chromium.org/6347007/diff/1/src/arm/assembler-arm.h#newcode377 src/arm/assembler-arm.h:377: inline int SpIndexForPushAll(Register reg) { We have SafepointRegisterSlot ...
9 years, 11 months ago (2011-01-20 08:03:22 UTC) #4
Mads Ager (chromium)
http://codereview.chromium.org/6347007/diff/11001/src/arm/lithium-codegen-arm.cc File src/arm/lithium-codegen-arm.cc (right): http://codereview.chromium.org/6347007/diff/11001/src/arm/lithium-codegen-arm.cc#newcode2479 src/arm/lithium-codegen-arm.cc:2479: __ jmp(&done); On 2011/01/20 08:03:22, Søren Gjesse wrote: > ...
9 years, 11 months ago (2011-01-20 08:07:31 UTC) #5
Alexandre
9 years, 11 months ago (2011-01-20 10:45:34 UTC) #6
http://codereview.chromium.org/6347007/diff/2002/src/arm/lithium-codegen-arm.cc
File src/arm/lithium-codegen-arm.cc (right):

http://codereview.chromium.org/6347007/diff/2002/src/arm/lithium-codegen-arm....
src/arm/lithium-codegen-arm.cc:2476: __ jmp(&done);
b(eq, &done);
would be enough.
"done" could be renamed to "positive" if that makes it clearer.

Powered by Google App Engine
This is Rietveld 408576698