X64: Disable crankshaft if serializerion is enabled.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 7 Feb 2011 13:41:02 +0000 (13:41 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 7 Feb 2011 13:41:02 +0000 (13:41 +0000)
Review URL: http://codereview.chromium.org/6413017

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6665 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/x64/cpu-x64.cc

index 30134bf149ce1f32ef04793dc3b0c4222a185ee4..513c52286eae1dab18f5c1eee8d7fdb2a1c288fa 100644 (file)
@@ -43,6 +43,9 @@ namespace internal {
 
 void CPU::Setup() {
   CpuFeatures::Probe(true);
+  if (Serializer::enabled()) {
+    V8::DisableCrankshaft();
+  }
 }