194b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// Copyright 2013 the V8 project authors. All rights reserved. 294b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// Redistribution and use in source and binary forms, with or without 394b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// modification, are permitted provided that the following conditions are 494b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// met: 594b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// 694b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// * Redistributions of source code must retain the above copyright 794b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// notice, this list of conditions and the following disclaimer. 894b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// * Redistributions in binary form must reproduce the above 994b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// copyright notice, this list of conditions and the following 1094b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// disclaimer in the documentation and/or other materials provided 1194b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// with the distribution. 1294b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// * Neither the name of Google Inc. nor the names of its 1394b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// contributors may be used to endorse or promote products derived 1494b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// from this software without specific prior written permission. 1594b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// 1694b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1794b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1894b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1994b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2094b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2194b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2294b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2394b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2494b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2594b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2694b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2794b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org 2894b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org// Flags: --allow-natives-syntax 2994b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org 3094b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.orgfunction f() { 3194b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org var count = ""; 3294b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org count[0] --; 3394b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org} 3494b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.orgf(); 3594b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.org%OptimizeFunctionOnNextCall(f); 3694b0d6fcb08a2f01ba52c6edb712068f482366f1danno@chromium.orgf(); 37