19b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// Copyright 2013 the V8 project authors. All rights reserved.
29b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// Redistribution and use in source and binary forms, with or without
39b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// modification, are permitted provided that the following conditions are
49b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// met:
59b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//
69b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//     * Redistributions of source code must retain the above copyright
79b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//       notice, this list of conditions and the following disclaimer.
89b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//     * Redistributions in binary form must reproduce the above
99b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//       copyright notice, this list of conditions and the following
109b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//       disclaimer in the documentation and/or other materials provided
119b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//       with the distribution.
129b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//     * Neither the name of Google Inc. nor the names of its
139b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//       contributors may be used to endorse or promote products derived
149b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//       from this software without specific prior written permission.
159b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org//
169b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
179b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
189b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
199b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
209b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
219b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
229b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
249b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
259b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
269b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
279b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org
289b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// Flags: --allow-natives-syntax
299b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org// This test requires ASAN.
309b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org
319b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.orgfunction __f_4(a, b) { }
329b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.orgfunction __f_8(n) { return __f_4(arguments[13], arguments[-10]); }
339b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.orgfunction __f_6(a) { return __f_8(0, a); }
349b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org__f_8(0);
359b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org__f_8(0);
369b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org%OptimizeFunctionOnNextCall(__f_8);
379b95fd75bfb24acf6b51a360058331013e74fc73machenbach@chromium.org__f_8(0);
38