Use cmov instructions to avoid some conditional branches in stub code.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Jan 2010 12:02:18 +0000 (12:02 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 5 Jan 2010 12:02:18 +0000 (12:02 +0000)
commite06c5812321f00de717dc5859d90945da2ecf0a5
tree1a177897dafe44b7931ac416e49db35c8d4befe8
parent9f0997f9bf3622cd4b25d787670f15f8096be33f
Use cmov instructions to avoid some conditional branches in stub code.

This change improves the ConstructStub and the ArgumentsAccessStub slightly
by using the cmov instruction (if available) to eliminate a
conditional branch. It only applies to the IA-32 and X64 platforms.

Review URL: http://codereview.chromium.org/519035

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3537 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ia32/codegen-ia32.cc
src/ia32/stub-cache-ia32.cc
src/x64/codegen-x64.cc
src/x64/stub-cache-x64.cc