[turbofan] Don't lower to NumberModulus unless the inputs are numbers.
authorbmeurer <bmeurer@chromium.org>
Wed, 3 Jun 2015 11:24:14 +0000 (04:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Jun 2015 11:24:27 +0000 (11:24 +0000)
commitdaba339a84c75f5edac6f60eb079b563970260b9
tree5615ae2b9acb8505735993b210a2711a720593e4
parenta961d6c0146e3ee4bb8a4baa50ca475b56239bc5
[turbofan] Don't lower to NumberModulus unless the inputs are numbers.

The IC for modulus is usually way faster than converting the inputs to
numbers and doing a Float64Mod on them.

R=jarin@chromium.org

Review URL: https://codereview.chromium.org/1170433002

Cr-Commit-Position: refs/heads/master@{#28787}
src/compiler/js-typed-lowering.cc
src/compiler/js-typed-lowering.h
test/cctest/compiler/test-js-typed-lowering.cc