1f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org// Copyright 2014 the V8 project authors. All rights reserved. 2f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org// Use of this source code is governed by a BSD-style license that can be 3f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org// found in the LICENSE file. 4f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org 5f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org// Flags: --allow-natives-syntax --enable-slow-asserts 6f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org 7f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.orgfunction f(a, x) { 8f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org a.shift(); 9f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org a[0] = x; 10f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org} 11f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org 12f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.orgf([1], 1.1); 13f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.orgf([1], 1.1); 14f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.org%OptimizeFunctionOnNextCall(f); 15f2f0489407bbb5e50d16ae791442df29513b53b5machenbach@chromium.orgf([1], 1.1); 16