Index: src/ia32/lithium-codegen-ia32.h |
diff --git a/src/ia32/lithium-codegen-ia32.h b/src/ia32/lithium-codegen-ia32.h |
index 77a37a6221f4370c7d75e975be68776613b31a5e..6c9cde33a48425d451b0df00f77d09aa75f91fed 100644 |
--- a/src/ia32/lithium-codegen-ia32.h |
+++ b/src/ia32/lithium-codegen-ia32.h |
@@ -268,6 +268,10 @@ class LCodeGen: public LCodeGenBase { |
void DeoptimizeIf(Condition cc, LEnvironment* environment); |
void ApplyCheckIf(Condition cc, LBoundsCheck* check); |
+ bool DeoptEveryNTimes() { |
+ return FLAG_deopt_every_n_times != 0 && !info()->IsStub(); |
+ } |
+ |
void AddToTranslation(LEnvironment* environment, |
Translation* translation, |
LOperand* op, |