Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index b67441f93797f4ba4f9daea1d052650cfd96a8ab..3e8b1aa4edc8b9dc67906f62f2a3fa30da987273 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2240,7 +2240,11 @@ void LCodeGen::DoBranch(LBranch* instr) { |
if (!expected.IsGeneric()) { |
// We've seen something for the first time -> deopt. |
// This can only happen if we are not generic already. |
- DeoptimizeIf(no_condition, instr->environment()); |
+ if (!info()->IsStub()) { |
rossberg
2013/06/24 08:54:16
This seems redundant, given that DeoptimizeIf alre
|
+ SoftDeoptimize(instr->environment()); |
+ } else { |
+ DeoptimizeIf(no_condition, instr->environment()); |
+ } |
} |
} |
} |