Reviewers: Sven Panne, Jakob,
Message:
PTAL
Description:
Fix the CPU feature detection.
Move all of the CPU detection logic to the CPU class, and make
all other code use the CPU class for feature detection.
This also fixes the ARM CPU feature detection logic, which was
based on fragile string search in /proc/cpuinfo. Now we use
ELF hwcaps if available, falling back to sane(!!) parsing of
/proc/cpuinfo for CPU features.
The ia32 and x64 code was also cleaned up to make it usable
outside the assembler.
Please review this at https://codereview.chromium.org/23401002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/arm/assembler-arm.cc
M src/cpu.h
A src/cpu.cc
M src/ia32/assembler-ia32.cc
M src/mips/assembler-mips.cc
M src/platform-linux.cc
M src/platform-nullos.cc
M src/platform.h
M src/v8globals.h
M src/x64/assembler-x64.cc
M test/cctest/cctest.gyp
A + test/cctest/test-cpu-ia32.cc
A + test/cctest/test-cpu-x64.cc
A + test/cctest/test-cpu.cc
M test/cctest/test-disasm-ia32.cc
M tools/gyp/v8.gyp
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.