From 944c70efb1ff9ac029c96a51e0ec48febaa0b558 Mon Sep 17 00:00:00 2001 From: "weiliang.lin@intel.com" Date: Thu, 25 Sep 2014 12:57:14 +0000 Subject: [PATCH] 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 --- src/x87/lithium-codegen-x87.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.7.4