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

Issue 661075: Clean up use of ifdefs for ARM variants.... (Closed)

Created:
10 years, 10 months ago by Erik Corry
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Clean up use of ifdefs for ARM variants. If you are cross-compiling snapshots for an ARM CPU that supports VFP or ARMv7 instructions you need to define the CAN_USE_VFP_INSTRUCTIONS and CAN_USE_ARMV7_INSTRUCTIONS in the mksnapshot stage. Otherwise the snapshot will not make use of the instructions, resulting in slower floating point performance. Should also fix http://code.google.com/p/v8/issues/detail?id=590 Committed: http://code.google.com/p/v8/source/detail?r=3951

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -8 lines) Patch
M src/arm/assembler-arm.cc View 3 chunks +26 lines, -4 lines 2 comments Download
M src/arm/cpu-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-freebsd.cc View 1 chunk +2 lines, -1 line 1 comment Download
M src/platform-linux.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/platform-openbsd.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Erik Corry
10 years, 10 months ago (2010-02-25 10:52:23 UTC) #1
Søren Thygesen Gjesse
LGTM with comments addressed. http://codereview.chromium.org/661075/diff/1/6 File src/arm/assembler-arm.cc (right): http://codereview.chromium.org/661075/diff/1/6#newcode51 src/arm/assembler-arm.cc:51: #ifdef __arm__ Please add comment ...
10 years, 10 months ago (2010-02-25 11:25:57 UTC) #2
david1
10 years, 4 months ago (2010-08-16 09:16:05 UTC) #3
On 2010/02/25 11:25:57, Søren Gjesse wrote:

[...]

> 
> http://codereview.chromium.org/661075/diff/1/3#newcode194
> src/platform-freebsd.cc:194: void OS::DebugBreak() {
> Wont this not lead to emitting int $3 with __arm__ defined and 
> CAN_USE_ARMV5_INSTRUCTIONS not defined?
> 
> In platform-linux.cc and platform-openbsd.cc as well.

Yes, it does. Which is why v8 does not build on ARMv4.

See:
http://code.google.com/p/v8/issues/detail?id=590

Powered by Google App Engine
This is Rietveld 408576698