Index: test/mjsunit/regress/regress-962.js |
diff --git a/test/mjsunit/regress/regress-962.js b/test/mjsunit/regress/regress-962.js |
index f9f46e18fc0d57530dedc68f24950685c80a3562..85ada0c8abb905929d2c32c406aa9e94698681c0 100644 |
--- a/test/mjsunit/regress/regress-962.js |
+++ b/test/mjsunit/regress/regress-962.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 |
+ |
function L(scope) { this.s = new Object(); } |
L.prototype.c = function() { return true; } |
@@ -50,4 +52,6 @@ F.prototype.foo = function () { |
var ctx = new F; |
-for (var i = 0; i < 10000; i++) ctx.foo(); |
+for (var i = 0; i < 5; i++) ctx.foo(); |
+%OptimizeFunctionOnNextCall(F.prototype.foo); |
+ctx.foo(); |