1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Flags: --allow-natives-syntax --deopt-every-n-times=5 --nodead-code-elimination
9 function push(array, value) {
16 %OptimizeFunctionOnNextCall(push);
20 Object.defineProperty(Array.prototype, "4", {
21 get: function() { return 100; },
22 set: function(value) { v = value; }
27 assertEquals(5, array.length);
28 assertEquals(100, array[4]);