From f7244bce577218fc1a10777b168c42f309ba7eed Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Mon, 8 Apr 2013 07:51:32 +0000 Subject: [PATCH] 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 --- src/arm/lithium-codegen-arm.cc | 4 +++- src/ia32/lithium-codegen-ia32.cc | 4 ++-- src/mips/lithium-codegen-mips.cc | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) 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; } -- 2.7.4