Index: src/ia32/cpu-ia32.cc |
diff --git a/src/ia32/cpu-ia32.cc b/src/ia32/cpu-ia32.cc |
index 286ed7b80137255cab9c495614733bcc42413fba..2928045770dc416ff9ac7fa6683b22e428cc3602 100644 |
--- a/src/ia32/cpu-ia32.cc |
+++ b/src/ia32/cpu-ia32.cc |
@@ -42,12 +42,12 @@ namespace v8 { |
namespace internal { |
void CPU::Setup() { |
- CpuFeatures* cpu_features = Isolate::Current()->cpu_features(); |
- cpu_features->Clear(); |
- cpu_features->Probe(true); |
- if (!cpu_features->IsSupported(SSE2) || Serializer::enabled()) { |
- V8::DisableCrankshaft(); |
- } |
+ CpuFeatures::Probe(true); |
+} |
+ |
+ |
+bool CPU::SupportsCrankshaft() { |
+ return CpuFeatures::IsSupported(SSE2); |
} |