V4: only optimize out to-int32 conversions when the operands are int32.
authorErik Verbruggen <erik.verbruggen@digia.com>
Thu, 18 Dec 2014 09:24:22 +0000 (10:24 +0100)
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>
Thu, 18 Dec 2014 11:12:31 +0000 (12:12 +0100)
commit7ee29f69918ef11b83f7ee6acc1fa9c508c9f4a3
tree6208affc4abb174cd353fb69bc540f111bf5212c
parent87ac0d66abbe235e353fbe10dc864ebdc9904d41
V4: only optimize out to-int32 conversions when the operands are int32.

The operands of bit-ops are not typed as int32 when no type-inference is
done, like for the interpreter.

Task-number: QTBUG-43309
Change-Id: I67af18e14ddbc0649530ac23601332ee7d7a1f34
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4ssa.cpp
tests/auto/qml/qjsengine/tst_qjsengine.cpp