From: weiliang.lin@intel.com Date: Thu, 25 Sep 2014 12:57:14 +0000 (+0000) Subject: X87: fix the bug which is introduced by R24169. X-Git-Tag: upstream/4.7.83~6692 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=944c70efb1ff9ac029c96a51e0ec48febaa0b558;p=platform%2Fupstream%2Fv8.git 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 . git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24226 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc index 95a12b3..8f17258 100644 --- a/src/x87/lithium-codegen-x87.cc +++ b/src/x87/lithium-codegen-x87.cc @@ -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);