[turbofan] Optimize division/modulus by constant.
authorbmeurer@chromium.org <bmeurer@chromium.org>
Tue, 14 Oct 2014 11:57:06 +0000 (11:57 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org>
Tue, 14 Oct 2014 11:57:06 +0000 (11:57 +0000)
commit81877a644055aaa16be277af1d82f4e611cbfb0a
tree5e2af1e8cca936f6ef454b7f79fffb4927c1c657
parentf58558d91062d1be18d7c42491ef6c3699b541ae
[turbofan] Optimize division/modulus by constant.

TEST=cctest,mjsunit,unittests
R=dcarney@chromium.org, svenpanne@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24595 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
30 files changed:
src/compiler/arm/code-generator-arm.cc
src/compiler/arm/instruction-codes-arm.h
src/compiler/arm/instruction-selector-arm.cc
src/compiler/arm64/code-generator-arm64.cc
src/compiler/arm64/instruction-codes-arm64.h
src/compiler/arm64/instruction-selector-arm64.cc
src/compiler/ia32/code-generator-ia32.cc
src/compiler/ia32/instruction-codes-ia32.h
src/compiler/ia32/instruction-selector-ia32.cc
src/compiler/instruction-selector.cc
src/compiler/machine-operator-reducer.cc
src/compiler/machine-operator-reducer.h
src/compiler/machine-operator.cc
src/compiler/machine-operator.h
src/compiler/opcodes.h
src/compiler/raw-machine-assembler.h
src/compiler/x64/code-generator-x64.cc
src/compiler/x64/instruction-codes-x64.h
src/compiler/x64/instruction-selector-x64.cc
test/cctest/compiler/test-run-machops.cc
test/mjsunit/asm/int32div.js [new file with mode: 0644]
test/mjsunit/asm/int32mod.js [new file with mode: 0644]
test/unittests/compiler/arm/instruction-selector-arm-unittest.cc
test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc
test/unittests/compiler/graph-unittest.cc
test/unittests/compiler/graph-unittest.h
test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc
test/unittests/compiler/machine-operator-reducer-unittest.cc
test/unittests/compiler/machine-operator-unittest.cc
test/unittests/compiler/x64/instruction-selector-x64-unittest.cc