Commit c41447f2 authored by kasperl@chromium.org's avatar kasperl@chromium.org

There's seems to be an issue with 0/0 on ARM, which I'll

continue to investigate. For now, use NaN instead of computing
it ourselves.

TBR=sgjesse@chromium.org
Review URL: http://codereview.chromium.org/160267

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2552 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 91a6039f
......@@ -7644,9 +7644,8 @@ THREADED_TEST(PixelArray) {
CHECK_EQ(2, result->Int32Value());
CHECK_EQ(2, i::Smi::cast(jsobj->GetElement(6))->value());
result = CompileRun("var nan = 0/0;"
"for (var i = 0; i < 8; i++) {"
" pixels[5] = nan;"
result = CompileRun("for (var i = 0; i < 8; i++) {"
" pixels[5] = NaN;"
"}"
"pixels[5];");
CHECK_EQ(0, result->Int32Value());
......
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