X87: fix the bug which is introduced by R24169.

    Two more DeoptimizeIf(...) are added so the branch distance changed.
    we need to use Label::kFar.

BUG=
R=weiliang.lin@intel.com

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

Patch from Chunyang Dai <chunyang.dai@intel.com>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24226 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b11c9251
......@@ -5305,7 +5305,7 @@ void LCodeGen::DoDoubleToI(LDoubleToI* instr) {
Label::Distance dist = DeoptEveryNTimes() ? Label::kFar : Label::kNear;
__ X87TOSToI(result_reg, instr->hydrogen()->GetMinusZeroMode(),
&lost_precision, &is_nan, &minus_zero, dist);
__ jmp(&done, dist);
__ jmp(&done);
__ bind(&lost_precision);
DeoptimizeIf(no_condition, instr, "lost precision");
__ bind(&is_nan);
......@@ -5330,7 +5330,7 @@ void LCodeGen::DoDoubleToSmi(LDoubleToSmi* instr) {
Label::Distance dist = DeoptEveryNTimes() ? Label::kFar : Label::kNear;
__ X87TOSToI(result_reg, instr->hydrogen()->GetMinusZeroMode(),
&lost_precision, &is_nan, &minus_zero, dist);
__ jmp(&done, dist);
__ jmp(&done);
__ bind(&lost_precision);
DeoptimizeIf(no_condition, instr, "lost precision");
__ bind(&is_nan);
......
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