Fri, 14 Jul 2017 14:30:06 -0700
Merge
hannesw@1337 | 1 | /* |
hannesw@1337 | 2 | * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
hannesw@1337 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
hannesw@1337 | 4 | * |
hannesw@1337 | 5 | * This code is free software; you can redistribute it and/or modify it |
hannesw@1337 | 6 | * under the terms of the GNU General Public License version 2 only, as |
hannesw@1337 | 7 | * published by the Free Software Foundation. |
hannesw@1337 | 8 | * |
hannesw@1337 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
hannesw@1337 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
hannesw@1337 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
hannesw@1337 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
hannesw@1337 | 13 | * accompanied this code). |
hannesw@1337 | 14 | * |
hannesw@1337 | 15 | * You should have received a copy of the GNU General Public License version |
hannesw@1337 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
hannesw@1337 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
hannesw@1337 | 18 | * |
hannesw@1337 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
hannesw@1337 | 20 | * or visit www.oracle.com if you need additional information or have any |
hannesw@1337 | 21 | * questions. |
hannesw@1337 | 22 | */ |
hannesw@1337 | 23 | |
hannesw@1337 | 24 | /** |
hannesw@1337 | 25 | * JDK-8053905: Eager code generation fails for earley boyer with split threshold set to 1000 |
hannesw@1337 | 26 | * |
hannesw@1337 | 27 | * @test |
hannesw@1337 | 28 | * @runif external.octane |
hannesw@1337 | 29 | * @fork |
hannesw@1337 | 30 | * @option -Dnashorn.compiler.splitter.threshold=1000 |
attila@1535 | 31 | * @option -Dnashorn.options.allowEagerCompilationSilentOverride |
hannesw@1337 | 32 | * @option -scripting |
hannesw@1337 | 33 | * @option --lazy-compilation=false |
hannesw@1337 | 34 | */ |
hannesw@1337 | 35 | |
hannesw@1337 | 36 | var fn = __DIR__ + 'compile-octane.js'; |
hannesw@1337 | 37 | arguments.push("earley-boyer"); // run only earley-boyer |
hannesw@1337 | 38 | var url = new java.io.File(fn).toURL(); |
hannesw@1337 | 39 | load(url); |