Index: test/mjsunit/external-array.js |
diff --git a/test/mjsunit/external-array.js b/test/mjsunit/external-array.js |
index 228e8f06f6d19fe6d805f870521793ef9531bd54..45d8be5a99f0f36b1196d2d0a381e81cbad08ed3 100644 |
--- a/test/mjsunit/external-array.js |
+++ b/test/mjsunit/external-array.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 |
+ |
// This is a regression test for overlapping key and value registers. |
function f(a) { |
a[0] = 0; |
@@ -32,9 +34,11 @@ function f(a) { |
} |
var a = new Int32Array(2); |
-for (var i = 0; i < 1000000; i++) { |
+for (var i = 0; i < 5; i++) { |
f(a); |
} |
+%OptimizeFunctionOnNextCall(f); |
+f(a); |
assertEquals(0, a[0]); |
assertEquals(0, a[1]); |