[x64] Fix handling of Smi constants in LSubI and LBitI
authorjkummerow <jkummerow@chromium.org>
Wed, 8 Jul 2015 10:20:23 +0000 (03:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 10:20:31 +0000 (10:20 +0000)
commit5379d8bc36b3388df4f5a6f7e0a86168f1a5ff0e
tree99522a87c5c5ecee9266e91e255b3728133c284c
parent6837ef99710fb9cf8e179101b52a23e9d0af20a4
[x64] Fix handling of Smi constants in LSubI and LBitI

Smi immediates are not supported, so instructions with Smi representations need their constants in a register. LAddI has already been doing this. The manifestation of the bug was that an operation would compute 0 instead of the correct result.

BUG=chromium:478612
LOG=y
R=verwaest@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#29529}
src/x64/lithium-x64.cc
test/mjsunit/regress/regress-crbug-478612.js [new file with mode: 0644]