[turbofan] Make VisitBranch and friends to backend specific.
authorbmeurer@chromium.org <bmeurer@chromium.org>
Mon, 13 Oct 2014 08:15:03 +0000 (08:15 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org>
Mon, 13 Oct 2014 08:15:03 +0000 (08:15 +0000)
commitf60bc8908342db3197709f3fdc7a5cc91b06381e
treeb903f1cd83c05390eaf2d30c48c70c970ab5b119
parent657052e87f120c58f7f00cd5d97da2d4bef31b28
[turbofan] Make VisitBranch and friends to backend specific.

This is required to fix a tricky branch fusion bug on ARM, which was
caused by the interaction between the architecture-independent and
architecture-specific parts of the InstructionSelector. In the end it
wasn't worth sharing a few common lines of code for the additional
complexity, especially if we also want to properly support architectures
without any dedicated flags register (i.e. MIPS).

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

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24546 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/compiler/arm/instruction-selector-arm.cc
src/compiler/arm64/instruction-selector-arm64.cc
src/compiler/ia32/instruction-selector-ia32.cc
src/compiler/instruction-selector.cc
src/compiler/instruction-selector.h
src/compiler/x64/instruction-selector-x64.cc