Index: src/mips/assembler-mips.h |
diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h |
index ab639399adedc10dc64540fa0f85f8aaec405649..cae8a103496e3d2af7611933af3ba1173ac47069 100644 |
--- a/src/mips/assembler-mips.h |
+++ b/src/mips/assembler-mips.h |
@@ -419,65 +419,6 @@ class MemOperand : public Operand { |
}; |
-// CpuFeatures keeps track of which features are supported by the target CPU. |
-// Supported features must be enabled by a CpuFeatureScope before use. |
-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); |
- |
- // A special case for printing target and features, which we want to do |
- // before initializing the isolate |
- |
- // Check whether a feature is supported by the target CPU. |
- static bool IsSupported(CpuFeature f) { |
- ASSERT(initialized_); |
- 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) { |
- unsigned mask = flag2set(f); |
- return cross_compile_ == 0 || |
- (cross_compile_ & mask) == mask; |
- } |
- |
- static bool SupportsCrankshaft() { return CpuFeatures::IsSupported(FPU); } |
- |
- private: |
- static bool Check(CpuFeature f, unsigned set) { |
- return (set & flag2set(f)) != 0; |
- } |
- |
- static unsigned flag2set(CpuFeature f) { |
- return 1u << f; |
- } |
- |
-#ifdef DEBUG |
- static bool initialized_; |
-#endif |
- static unsigned supported_; |
- static unsigned found_by_runtime_probing_only_; |
- |
- static unsigned cross_compile_; |
- |
- friend class ExternalReference; |
- friend class PlatformFeatureScope; |
- DISALLOW_COPY_AND_ASSIGN(CpuFeatures); |
-}; |
- |
- |
class Assembler : public AssemblerBase { |
public: |
// Create an assembler. Instructions and relocation information are emitted |