blob: a28a3833b180dbb933c1e2b7e4897b16ab852360 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 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.
4
5// Flags: --allow-natives-syntax --enable-slow-asserts
6
7Array.prototype.__proto__ = null;
8var func = Array.prototype.push;
9var prototype = Array.prototype;
10function CallFunc(a) {
11 func.call(a);
12}
13function CallFuncWithPrototype() {
14 CallFunc(prototype);
15}
16CallFunc([]);
17CallFunc([]);
18%OptimizeFunctionOnNextCall(CallFuncWithPrototype);
19CallFuncWithPrototype();