Use getauxval() if available.
authorbmeurer@chromium.org <bmeurer@chromium.org>
Wed, 22 Oct 2014 06:42:17 +0000 (06:42 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org>
Wed, 22 Oct 2014 06:42:17 +0000 (06:42 +0000)
commit8214cc0e56e201c0cb4d5eb6069570e40f2f3cf7
tree5e48a73757464f7e638576bc7ecee9a8dafacc4c
parentf0881c612911af17187c51a16ab329df7afd0637
Use getauxval() if available.

This fixes the problem of not being able to detect ARM features on
ChromeOS because sandbox cannot access /proc/self/auxv and
/proc/cpuinfo there.

Drive-by-cleanup to libc detection in two other places.

R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/672543002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24789 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8config.h
src/base/cpu.cc
src/sampler.cc