Index: test/mjsunit/compiler/regress-or.js |
diff --git a/test/mjsunit/compiler/regress-or.js b/test/mjsunit/compiler/regress-or.js |
index 89f78025f1735ff6b2ce3f1bd84210ae64bb243f..939f2c3ffab1161ed9314cc2ada82cf6384a6646 100644 |
--- a/test/mjsunit/compiler/regress-or.js |
+++ b/test/mjsunit/compiler/regress-or.js |
@@ -25,6 +25,8 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+// Flags: --allow-natives-syntax |
+ |
// Test deoptimization inside short-circuited expressions. |
function f1(x) { |
var c = "fail"; |
@@ -36,7 +38,8 @@ function f1(x) { |
function g1() { try { return 1; } finally {} } |
-for (var i=0; i<10000000; i++) f1(42); |
+for (var i = 0; i < 5; i++) f1(42); |
+%OptimizeFunctionOnNextCall(f1); |
assertEquals(-1, f1(0)); |
assertEquals(-43, f1(42)); |
@@ -52,6 +55,7 @@ function f2(x) { |
function g2() { try { return 0; } finally {} } |
-for (var i=0; i<10000000; i++) f2(42); |
+for (var i = 0; i < 5; i++) f2(42); |
+%OptimizeFunctionOnNextCall(f2); |
assertEquals(-1, f2("")); |