Index: test/mjsunit/compiler/regress-rep-change.js |
diff --git a/test/mjsunit/compiler/regress-rep-change.js b/test/mjsunit/compiler/regress-rep-change.js |
index 937099937d3fecd9111bd9959037fa8a30a82c75..c8a0983c44c7ff00709d4c00a359fc7fd2ac89b7 100644 |
--- a/test/mjsunit/compiler/regress-rep-change.js |
+++ b/test/mjsunit/compiler/regress-rep-change.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 |
+ |
// Regression test for the case where a phi has two input operands with |
// the same value. |
@@ -35,8 +37,11 @@ function test(start) { |
for (var i = start; i < 10; i++) { } |
} |
-var n = 5000000; |
+var n = 3; |
for (var i = 0; i < n; ++i) { |
test(0); |
} |
+ |
+%OptimizeFunctionOnNextCall(test); |
+test(0); |