Also delete dead cpu-features-implied-by-platform code.
BUG=none
R=jkummerow@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/
326333002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21779
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
void CpuFeatures::ProbeImpl(bool cross_compile) {
- supported_ |= OS::CpuFeaturesImpliedByPlatform();
supported_ |= CpuFeaturesImpliedByCompiler();
cache_line_size_ = 64;
CPU cpu;
CHECK(cpu.has_sse2()); // SSE2 support is mandatory.
CHECK(cpu.has_cmov()); // CMOV support is mandatory.
- supported_ |= OS::CpuFeaturesImpliedByPlatform();
// Only use statically determined features for cross compile (snapshot).
if (cross_compile) return;
void CpuFeatures::ProbeImpl(bool cross_compile) {
- supported_ |= OS::CpuFeaturesImpliedByPlatform();
supported_ |= CpuFeaturesImpliedByCompiler();
// Only use statically determined features for cross compile (snapshot).
static const pthread_t kNoThread = (pthread_t) 0;
-unsigned OS::CpuFeaturesImpliedByPlatform() {
- return 0; // Nothing special.
-}
-
-
int OS::NumberOfProcessorsOnline() {
return static_cast<int>(sysconf(_SC_NPROCESSORS_ONLN));
}
#endif // __MINGW32__
-unsigned OS::CpuFeaturesImpliedByPlatform() {
- return 0; // Windows runs on anything.
-}
-
-
int OS::NumberOfProcessorsOnline() {
SYSTEM_INFO info;
GetSystemInfo(&info);
#include <stdarg.h>
+#include "src/base/build_config.h"
#include "src/platform/mutex.h"
#include "src/platform/semaphore.h"
-#include "src/globals.h"
#include "src/vector.h"
#ifdef __sun
// using --never-compact) if accurate profiling is desired.
static void SignalCodeMovingGC();
- // The return value indicates the CPU features we are sure of because of the
- // OS.
- // This is a little messy because the interpretation is subject to the cross
- // of the CPU and the OS. The bits in the answer correspond to the bit
- // positions indicated by the members of the CpuFeature enum from globals.h
- static unsigned CpuFeaturesImpliedByPlatform();
-
// Returns the number of processors online.
static int NumberOfProcessorsOnline();
CHECK(cpu.has_sse2()); // SSE2 support is mandatory.
CHECK(cpu.has_cmov()); // CMOV support is mandatory.
- supported_ |= OS::CpuFeaturesImpliedByPlatform();
-
// Only use statically determined features for cross compile (snapshot).
if (cross_compile) return;
void CpuFeatures::ProbeImpl(bool cross_compile) {
CPU cpu;
- supported_ |= OS::CpuFeaturesImpliedByPlatform();
// Only use statically determined features for cross compile (snapshot).
if (cross_compile) return;