Index: test/mjsunit/mjsunit.js |
diff --git a/test/mjsunit/mjsunit.js b/test/mjsunit/mjsunit.js |
index ad8c511bc85fdcd6770360b886e7dfd2c7e1e243..ec17f1d76afe8be552042bdbc27a233d846c3f9f 100644 |
--- a/test/mjsunit/mjsunit.js |
+++ b/test/mjsunit/mjsunit.js |
@@ -500,6 +500,12 @@ var isTurboFanned; |
assertFalse((opt_status & V8OptimizationStatus.kAlwaysOptimize) !== 0, |
"test does not make sense with --always-opt"); |
assertTrue((opt_status & V8OptimizationStatus.kIsFunction) !== 0, name_opt); |
+ if ((opt_status & V8OptimizationStatus.kMaybeDeopted) !== 0) { |
+ // When --deopt-every-n-times flag is specified it's no longer guaranteed |
+ // that particular function is still deoptimized, so keep running the test |
+ // to stress test the deoptimizer. |
+ return; |
+ } |
assertFalse((opt_status & V8OptimizationStatus.kOptimized) !== 0, name_opt); |
} |