Index: src/ia32/assembler-ia32.h |
diff --git a/src/ia32/assembler-ia32.h b/src/ia32/assembler-ia32.h |
index 6b60c12bec842eb9ca0390f9b03d183d0becee30..2ce41e0a5f7ef7909ed1f57221be1a28cf75e52f 100644 |
--- a/src/ia32/assembler-ia32.h |
+++ b/src/ia32/assembler-ia32.h |
@@ -452,73 +452,6 @@ class Displacement BASE_EMBEDDED { |
}; |
- |
-// CpuFeatures keeps track of which features are supported by the target CPU. |
-// Supported features must be enabled by a CpuFeatureScope before use. |
-// Example: |
-// if (assembler->IsSupported(SSE3)) { |
-// CpuFeatureScope fscope(assembler, SSE3); |
-// // Generate code containing SSE3 instructions. |
-// } else { |
-// // Generate alternative code. |
-// } |
-class CpuFeatures : public AllStatic { |
- public: |
- // Detect features of the target CPU. Set safe defaults if the serializer |
- // is enabled (snapshots must be portable). |
- static void Probe(bool serializer_enabled); |
- |
- // Check whether a feature is supported by the target CPU. |
- static bool IsSupported(CpuFeature f) { |
- ASSERT(initialized_); |
- if (Check(f, cross_compile_)) return true; |
- if (f == SSE3 && !FLAG_enable_sse3) return false; |
- if (f == SSE4_1 && !FLAG_enable_sse4_1) return false; |
- return Check(f, supported_); |
- } |
- |
- static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { |
- return Check(f, cross_compile_) || |
- (IsSupported(f) && |
- !(Serializer::enabled(isolate) && |
- Check(f, found_by_runtime_probing_only_))); |
- } |
- |
- static bool VerifyCrossCompiling() { |
- return cross_compile_ == 0; |
- } |
- |
- static bool VerifyCrossCompiling(CpuFeature f) { |
- uint64_t mask = flag2set(f); |
- return cross_compile_ == 0 || |
- (cross_compile_ & mask) == mask; |
- } |
- |
- static bool SupportsCrankshaft() { return true; } |
- |
- private: |
- static bool Check(CpuFeature f, uint64_t set) { |
- return (set & flag2set(f)) != 0; |
- } |
- |
- static uint64_t flag2set(CpuFeature f) { |
- return static_cast<uint64_t>(1) << f; |
- } |
- |
-#ifdef DEBUG |
- static bool initialized_; |
-#endif |
- static uint64_t supported_; |
- static uint64_t found_by_runtime_probing_only_; |
- |
- static uint64_t cross_compile_; |
- |
- friend class ExternalReference; |
- friend class PlatformFeatureScope; |
- DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
-}; |
- |
- |
class Assembler : public AssemblerBase { |
private: |
// We check before assembling an instruction that there is sufficient |