[turbofan] Use builtin inlining mechanism for Math.abs and Math.sqrt.
authorbmeurer <bmeurer@chromium.org>
Fri, 13 Mar 2015 07:06:02 +0000 (00:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 13 Mar 2015 07:06:15 +0000 (07:06 +0000)
commit83f157bc18cd9e23f88e045351665c70f283c6ad
treec8806ce60677f9948545ca9dc41a8e55a2dd9dec
parent0c305e0b1be7ab2fb00a8d10572ec1222e4c0c35
[turbofan] Use builtin inlining mechanism for Math.abs and Math.sqrt.

Reduces the amount of custom support code for Math functions in TurboFan
and allows for more general inlining (i.e. independent of parameter
types).

BUG=v8:3952
LOG=n
R=yangguo@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#27172}
12 files changed:
src/compiler/js-builtin-reducer.cc
src/compiler/js-builtin-reducer.h
src/compiler/js-intrinsic-lowering.cc
src/compiler/js-intrinsic-lowering.h
src/compiler/typer.cc
src/hydrogen.cc
src/hydrogen.h
src/math.js
src/runtime/runtime-maths.cc
src/runtime/runtime.h
src/x87/lithium-codegen-x87.cc
test/unittests/compiler/js-builtin-reducer-unittest.cc