Reviewers: Sven, Description: Add roundsd instruction to ia32 and use it in optimized Math.floor.
It is available platforms that have SSE 4.1 and allows us to handle negative numbers without deoptimization. Before we would deoptimize on negative inputs to Math.floor. x64 already uses this instruction. * Change Math.floor unit test to make sure every test case gets optimized by changing the source code for each test case. * Fix HIR debug printing for some instructions. Please review this at http://codereview.chromium.org/7628017/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/hydrogen-instructions.h M src/hydrogen-instructions.cc M src/ia32/assembler-ia32.h M src/ia32/assembler-ia32.cc M src/ia32/disasm-ia32.cc M src/ia32/full-codegen-ia32.cc M src/ia32/lithium-codegen-ia32.cc M test/mjsunit/math-floor.js -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
