Commit ecc21b99 authored by ricow@chromium.org's avatar ricow@chromium.org

Fix conditional on sse2 support in CompileMathFloor

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
parent 15cfab8f
...@@ -1923,7 +1923,7 @@ MaybeObject* CallStubCompiler::CompileMathFloorCall(Object* object, ...@@ -1923,7 +1923,7 @@ MaybeObject* CallStubCompiler::CompileMathFloorCall(Object* object,
// -- esp[(argc + 1) * 4] : receiver // -- esp[(argc + 1) * 4] : receiver
// ----------------------------------- // -----------------------------------
if (isolate()->cpu_features()->IsSupported(SSE2)) { if (!isolate()->cpu_features()->IsSupported(SSE2)) {
return isolate()->heap()->undefined_value(); return isolate()->heap()->undefined_value();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment