Index: test/mjsunit/regress/regress-1099.js |
diff --git a/test/mjsunit/regress/regress-1099.js b/test/mjsunit/regress/regress-1099.js |
index 0ed6ede4af0f104dc64f2bb6451e986b71863e65..36f09e4eb9cf4358b04e11d56fb71a30baa6f611 100644 |
--- a/test/mjsunit/regress/regress-1099.js |
+++ b/test/mjsunit/regress/regress-1099.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 that LApplyArguments lithium instruction restores context after the call. |
function X() { |
@@ -41,6 +43,9 @@ function Y(x) { |
var y = Y(X()); |
-for (var i = 0; i < 1000000; i++) { |
+for (var i = 0; i < 5; i++) { |
assertTrue(y("foo")); |
} |
+ |
+%OptimizeFunctionOnNextCall(y); |
+assertTrue(y("foo")); |