Commit 5113f10d authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

Rename {SupportsCrankshaft} to {SupportsOptimizer}.

R=jarin@chromium.org
BUG=v8:6408

Change-Id: I28ac6fa2d47ec14b06e6867b3c605c307549c474
Reviewed-on: https://chromium-review.googlesource.com/890266Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50962}
parent ad3033ea
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsCrankshaft() { return true; } bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(NEON); } bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(NEON); }
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsCrankshaft() { return true; }
bool CpuFeatures::SupportsWasmSimd128() { return true; } bool CpuFeatures::SupportsWasmSimd128() { return true; }
......
...@@ -283,7 +283,7 @@ class CpuFeatures : public AllStatic { ...@@ -283,7 +283,7 @@ class CpuFeatures : public AllStatic {
return (supported_ & (1u << f)) != 0; return (supported_ & (1u << f)) != 0;
} }
static inline bool SupportsCrankshaft(); static inline bool SupportsOptimizer();
static inline bool SupportsWasmSimd128(); static inline bool SupportsWasmSimd128();
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsCrankshaft() { return true; } bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(SSE4_1); } bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(SSE4_1); }
......
...@@ -3174,8 +3174,7 @@ CodeTracer* Isolate::GetCodeTracer() { ...@@ -3174,8 +3174,7 @@ CodeTracer* Isolate::GetCodeTracer() {
} }
bool Isolate::use_optimizer() { bool Isolate::use_optimizer() {
return FLAG_opt && !serializer_enabled_ && return FLAG_opt && !serializer_enabled_ && CpuFeatures::SupportsOptimizer() &&
CpuFeatures::SupportsCrankshaft() &&
!is_precise_count_code_coverage() && !is_block_count_code_coverage(); !is_precise_count_code_coverage() && !is_block_count_code_coverage();
} }
......
...@@ -46,8 +46,7 @@ ...@@ -46,8 +46,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsOptimizer() { return IsSupported(FPU); }
bool CpuFeatures::SupportsCrankshaft() { return IsSupported(FPU); }
bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(MIPS_SIMD); } bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(MIPS_SIMD); }
......
...@@ -46,8 +46,7 @@ ...@@ -46,8 +46,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsOptimizer() { return IsSupported(FPU); }
bool CpuFeatures::SupportsCrankshaft() { return IsSupported(FPU); }
bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(MIPS_SIMD); } bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(MIPS_SIMD); }
......
...@@ -46,8 +46,7 @@ ...@@ -46,8 +46,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsCrankshaft() { return true; }
bool CpuFeatures::SupportsWasmSimd128() { return false; } bool CpuFeatures::SupportsWasmSimd128() { return false; }
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsCrankshaft() { return true; } bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsWasmSimd128() { return false; } bool CpuFeatures::SupportsWasmSimd128() { return false; }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
namespace v8 { namespace v8 {
namespace internal { namespace internal {
bool CpuFeatures::SupportsCrankshaft() { return true; } bool CpuFeatures::SupportsOptimizer() { return true; }
bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(SSE4_1); } bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(SSE4_1); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment