| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 7453cac53bc88e86c7fa4dcdb5d471a929089e92..1d7c8c1b0c6f86ab6bf716e788729f5c6f483968 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -4843,11 +4843,11 @@ void LCodeGen::DoDoubleToI(LDoubleToI* instr) {
|
| Label lost_precision, is_nan, minus_zero, done;
|
| XMMRegister input_reg = ToDoubleRegister(input);
|
| XMMRegister xmm_scratch = double_scratch0();
|
| + Label::Distance dist = DeoptEveryNTimes() ? Label::kFar : Label::kNear;
|
| __ DoubleToI(result_reg, input_reg, xmm_scratch,
|
| instr->hydrogen()->GetMinusZeroMode(), &lost_precision,
|
| - &is_nan, &minus_zero,
|
| - DeoptEveryNTimes() ? Label::kFar : Label::kNear);
|
| - __ jmp(&done, Label::kNear);
|
| + &is_nan, &minus_zero, dist);
|
| + __ jmp(&done, dist);
|
| __ bind(&lost_precision);
|
| DeoptimizeIf(no_condition, instr, "lost precision");
|
| __ bind(&is_nan);
|
| @@ -4869,10 +4869,11 @@ void LCodeGen::DoDoubleToSmi(LDoubleToSmi* instr) {
|
| Label lost_precision, is_nan, minus_zero, done;
|
| XMMRegister input_reg = ToDoubleRegister(input);
|
| XMMRegister xmm_scratch = double_scratch0();
|
| + Label::Distance dist = DeoptEveryNTimes() ? Label::kFar : Label::kNear;
|
| __ DoubleToI(result_reg, input_reg, xmm_scratch,
|
| instr->hydrogen()->GetMinusZeroMode(), &lost_precision, &is_nan,
|
| - &minus_zero, DeoptEveryNTimes() ? Label::kFar : Label::kNear);
|
| - __ jmp(&done, Label::kNear);
|
| + &minus_zero, dist);
|
| + __ jmp(&done, dist);
|
| __ bind(&lost_precision);
|
| DeoptimizeIf(no_condition, instr, "lost precision");
|
| __ bind(&is_nan);
|
|
|