Index: test/mjsunit/compiler/regress-1085.js |
diff --git a/test/mjsunit/compiler/regress-1085.js b/test/mjsunit/compiler/regress-1085.js |
index 5d787a45e6eb4808c155d4b527c8fcd8219c73d8..cea587f50063a23f7b1d7c3d01583ca83749acf0 100644 |
--- a/test/mjsunit/compiler/regress-1085.js |
+++ b/test/mjsunit/compiler/regress-1085.js |
@@ -25,11 +25,14 @@ |
// (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 correct checks for negative zero. |
// This test relies on specific type feedback for Math.min. |
function f(x) { return 1 / Math.min(1, x); } |
-for (var i=0; i<1000000; i++) f(1); |
+for (var i = 0; i < 5; ++i) f(1); |
+%OptimizeFunctionOnNextCall(f); |
+%OptimizeFunctionOnNextCall(Math.min); |
assertEquals(-Infinity, f(-0)); |