Chromium Code Reviews| Index: src/arm/lithium-codegen-arm.cc |
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
| index ef860e0d8774771c00378fc6b7bc8129726d49d6..b7c733cb259a0c589cb94a19a608570c99fdd598 100644 |
| --- a/src/arm/lithium-codegen-arm.cc |
| +++ b/src/arm/lithium-codegen-arm.cc |
| @@ -825,7 +825,7 @@ void LCodeGen::DeoptimizeIf(Condition cc, |
| return; |
| } |
| - if (FLAG_trap_on_deopt) { |
| + if (FLAG_trap_on_deopt && info()->IsOptimizing()) { |
| __ stop("trap_on_deopt", cc); |
| } |