Commit 247beac2 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fix an issue in DoMulI and address mjsunit test failure.

BUG=v8:1098
TEST=mjsunit/compiler/regress-intoverflow.js

Patch by Rodolph Perfetta from ARM Ltd.

Review URL: http://codereview.chromium.org/6312151


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6655 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6d5e9c88
...@@ -1174,7 +1174,7 @@ void LCodeGen::DoMulI(LMulI* instr) { ...@@ -1174,7 +1174,7 @@ void LCodeGen::DoMulI(LMulI* instr) {
if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) { if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) {
// scratch:left = left * right. // scratch:left = left * right.
__ smull(scratch, left, left, right); __ smull(left, scratch, left, right);
__ mov(ip, Operand(left, ASR, 31)); __ mov(ip, Operand(left, ASR, 31));
__ cmp(ip, Operand(scratch)); __ cmp(ip, Operand(scratch));
DeoptimizeIf(ne, instr->environment()); DeoptimizeIf(ne, instr->environment());
...@@ -3412,7 +3412,6 @@ void LCodeGen::DoDoubleToI(LDoubleToI* instr) { ...@@ -3412,7 +3412,6 @@ void LCodeGen::DoDoubleToI(LDoubleToI* instr) {
VFPRoundingMode rounding_mode = instr->truncating() ? kRoundToMinusInf VFPRoundingMode rounding_mode = instr->truncating() ? kRoundToMinusInf
: kRoundToNearest; : kRoundToNearest;
EmitVFPTruncate(rounding_mode, EmitVFPTruncate(rounding_mode,
single_scratch, single_scratch,
double_input, double_input,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment