From: svenpanne@chromium.org Date: Mon, 8 Apr 2013 07:51:32 +0000 (+0000) Subject: Unbreak --deopt-every-n-times. X-Git-Tag: upstream/4.7.83~14679 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7244bce577218fc1a10777b168c42f309ba7eed;p=platform%2Fupstream%2Fv8.git Unbreak --deopt-every-n-times. Review URL: https://codereview.chromium.org/13779003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14160 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc index 769764e..164075b 100644 --- a/src/arm/lithium-codegen-arm.cc +++ b/src/arm/lithium-codegen-arm.cc @@ -851,7 +851,9 @@ void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { } ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM. - if (FLAG_deopt_every_n_times == 1 && info_->opt_count() == id) { + if (FLAG_deopt_every_n_times == 1 && + !info()->IsStub() && + info()->opt_count() == id) { __ Jump(entry, RelocInfo::RUNTIME_ENTRY); return; } diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc index 07ea5a7..c0c1079 100644 --- a/src/ia32/lithium-codegen-ia32.cc +++ b/src/ia32/lithium-codegen-ia32.cc @@ -858,8 +858,8 @@ void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { return; } - if (FLAG_deopt_every_n_times != 0) { - Handle shared(info_->shared_info()); + if (FLAG_deopt_every_n_times != 0 && !info()->IsStub()) { + Handle shared(info()->shared_info()); Label no_deopt; __ pushfd(); __ push(eax); diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc index 2c62afc..dc419e9 100644 --- a/src/mips/lithium-codegen-mips.cc +++ b/src/mips/lithium-codegen-mips.cc @@ -828,7 +828,9 @@ void LCodeGen::DeoptimizeIf(Condition cc, } ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. - if (FLAG_deopt_every_n_times == 1 && info_->opt_count() == id) { + if (FLAG_deopt_every_n_times == 1 && + !info()->IsStub() && + info()->opt_count() == id) { __ Jump(entry, RelocInfo::RUNTIME_ENTRY); return; }