Fix conditional on sse2 support in CompileMathFloor
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 30 Mar 2011 07:22:53 +0000 (07:22 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 30 Mar 2011 07:22:53 +0000 (07:22 +0000)
We should test that there is NO sse2 support and return undefined in
that case.
Review URL: http://codereview.chromium.org/6759021

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

src/ia32/stub-cache-ia32.cc

index bb8d2d3..d6b41d5 100644 (file)
@@ -1923,7 +1923,7 @@ MaybeObject* CallStubCompiler::CompileMathFloorCall(Object* object,
   //  -- esp[(argc + 1) * 4] : receiver
   // -----------------------------------
 
-  if (isolate()->cpu_features()->IsSupported(SSE2)) {
+  if (!isolate()->cpu_features()->IsSupported(SSE2)) {
     return isolate()->heap()->undefined_value();
   }