hannesw@1506: /* hannesw@1506: * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. hannesw@1506: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. hannesw@1506: * hannesw@1506: * This code is free software; you can redistribute it and/or modify it hannesw@1506: * under the terms of the GNU General Public License version 2 only, as hannesw@1506: * published by the Free Software Foundation. hannesw@1506: * hannesw@1506: * This code is distributed in the hope that it will be useful, but WITHOUT hannesw@1506: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or hannesw@1506: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License hannesw@1506: * version 2 for more details (a copy is included in the LICENSE file that hannesw@1506: * accompanied this code). hannesw@1506: * hannesw@1506: * You should have received a copy of the GNU General Public License version hannesw@1506: * 2 along with this work; if not, write to the Free Software Foundation, hannesw@1506: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. hannesw@1506: * hannesw@1506: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA hannesw@1506: * or visit www.oracle.com if you need additional information or have any hannesw@1506: * questions. hannesw@1506: */ hannesw@1506: hannesw@1506: /** hannesw@1506: * JDK-8131340: Varargs function is recompiled each time it is linked hannesw@1506: * hannesw@1506: * @test hannesw@1506: * @run hannesw@1506: */ hannesw@1506: hannesw@1506: // This is an indirect test. If repeated calls were to cause recompilation hannesw@1506: // this would trigger an assertion in RecompilableScriptFunctionData. hannesw@1506: hannesw@1506: function varargs() { hannesw@1506: return arguments; hannesw@1506: } hannesw@1506: hannesw@1506: varargs(1); hannesw@1506: varargs(2); hannesw@1506: varargs(3); hannesw@1506: varargs(4); hannesw@1506: varargs(5); hannesw@1506: varargs(6);