| Index: src/ia32/codegen-ia32.cc
|
| ===================================================================
|
| --- src/ia32/codegen-ia32.cc (revision 5792)
|
| +++ src/ia32/codegen-ia32.cc (working copy)
|
| @@ -8578,9 +8578,11 @@
|
| }
|
| right.Unuse();
|
| frame_->Push(&left);
|
| - if (!node->to_int32()) {
|
| - // If ToInt32 is called on the result of ADD, SUB, or MUL, we don't
|
| + if (!node->to_int32() || op == Token::MUL) {
|
| + // If ToInt32 is called on the result of ADD, SUB, we don't
|
| // care about overflows.
|
| + // Result of MUL can be non-representable precisely in double so
|
| + // we have to check for overflow.
|
| unsafe_bailout_->Branch(overflow);
|
| }
|
| break;
|
|
|