/hg/icedtea8-forest/nashorn: 39 new changesets
andrew at icedtea.classpath.org
andrew at icedtea.classpath.org
Thu Jan 24 21:16:48 UTC 2019
changeset 1184d9780746 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=1184d9780746
author: andrew
date: Wed Jan 09 07:30:56 2019 +0000
Added tag icedtea-3.11.0pre01 for changeset 287a6c783833
changeset a57083d7fe9a in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=a57083d7fe9a
author: asaha
date: Wed Jan 10 09:26:54 2018 -0800
Added tag jdk8u182-b00 for changeset 5b549167a929
changeset d06ad01972dc in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=d06ad01972dc
author: asaha
date: Fri Dec 22 13:48:38 2017 -0800
Merge
changeset be3d79cf3738 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=be3d79cf3738
author: asaha
date: Wed Jan 03 14:27:02 2018 -0800
Merge
changeset cc88dea03ee2 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=cc88dea03ee2
author: asaha
date: Mon Jan 08 22:42:38 2018 -0800
Merge
changeset fda3ba3897cb in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=fda3ba3897cb
author: asaha
date: Fri Jan 12 17:55:06 2018 -0800
Merge
changeset dc3d91ceb51d in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=dc3d91ceb51d
author: asaha
date: Tue Jan 16 23:10:07 2018 -0800
Merge
changeset 7c576482238c in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=7c576482238c
author: asaha
date: Mon Jan 22 11:20:31 2018 -0800
Merge
changeset 3db4ec0973b7 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=3db4ec0973b7
author: hannesw
date: Thu Sep 21 14:40:50 2017 +0200
8186646: Nashorn: "duplicate code" assertion when binding a vararg function that just passes arguments along
Reviewed-by: sundar, jlaskey
changeset a6d0aec77286 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=a6d0aec77286
author: robm
date: Wed Feb 07 10:44:48 2018 -0800
Merge
changeset 2d9d57ca4925 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=2d9d57ca4925
author: asaha
date: Mon Apr 09 13:30:16 2018 -0700
Added tag jdk8u192-b00 for changeset a57083d7fe9a
changeset 73a482b7260a in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=73a482b7260a
author: asaha
date: Mon Apr 09 13:36:22 2018 -0700
Merge
changeset 2cc7554c7467 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=2cc7554c7467
author: asaha
date: Mon Apr 09 11:49:24 2018 -0700
Merge
changeset bc4618963547 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=bc4618963547
author: asaha
date: Fri Apr 13 18:20:42 2018 +0000
Merge
changeset 6f22b1f32301 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=6f22b1f32301
author: coffeys
date: Fri Jul 06 09:06:55 2018 +0100
Added tag jdk8u192-b01 for changeset bc4618963547
changeset 1087a0aaf6a1 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=1087a0aaf6a1
author: alitvinov
date: Mon Jul 16 18:21:27 2018 +0100
Merge
changeset ab21284e5eaa in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=ab21284e5eaa
author: alitvinov
date: Thu Jul 19 10:00:41 2018 +0100
Added tag jdk8u192-b02 for changeset 1087a0aaf6a1
changeset 2056d0c035e8 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=2056d0c035e8
author: robm
date: Tue Jul 24 09:52:13 2018 -0700
Added tag jdk8u192-b03 for changeset ab21284e5eaa
changeset f5fdcd69628e in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=f5fdcd69628e
author: diazhou
date: Wed Aug 01 03:37:55 2018 -0700
Added tag jdk8u192-b04 for changeset 2056d0c035e8
changeset 0d65cee90409 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=0d65cee90409
author: aefimov
date: Fri Aug 03 19:17:48 2018 +0100
Merge
changeset 0f388677a674 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=0f388677a674
author: diazhou
date: Mon Aug 06 23:10:37 2018 -0700
Added tag jdk8u192-b05 for changeset 0d65cee90409
changeset b1dfea491c05 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=b1dfea491c05
author: aefimov
date: Fri Aug 10 12:21:36 2018 +0100
Merge
changeset 45218d4ecfb4 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=45218d4ecfb4
author: diazhou
date: Tue Aug 14 13:43:21 2018 -0700
Added tag jdk8u192-b06 for changeset b1dfea491c05
changeset d42d488fd8dc in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=d42d488fd8dc
author: aefimov
date: Fri Aug 17 18:02:27 2018 +0100
Merge
changeset 220eaed49406 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=220eaed49406
author: diazhou
date: Tue Aug 21 13:11:01 2018 -0700
Added tag jdk8u192-b07 for changeset d42d488fd8dc
changeset 9d1371fc0987 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=9d1371fc0987
author: alitvinov
date: Fri Aug 24 19:04:31 2018 +0100
Merge
changeset 2164731b3cc7 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=2164731b3cc7
author: diazhou
date: Wed Aug 29 12:25:15 2018 -0700
Added tag jdk8u192-b08 for changeset 9d1371fc0987
changeset 456c0d45c43b in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=456c0d45c43b
author: alitvinov
date: Mon Sep 03 15:07:56 2018 +0100
Merge
changeset 037913b52507 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=037913b52507
author: diazhou
date: Wed Sep 05 01:21:35 2018 -0700
Added tag jdk8u192-b09 for changeset 456c0d45c43b
changeset 193697871588 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=193697871588
author: alitvinov
date: Mon Sep 10 15:48:31 2018 +0100
Merge
changeset e58a7b05e786 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=e58a7b05e786
author: aefimov
date: Tue Sep 11 20:35:28 2018 +0100
Merge
changeset 33f4f0838b5f in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=33f4f0838b5f
author: diazhou
date: Wed Sep 12 04:36:00 2018 -0700
Added tag jdk8u192-b10 for changeset e58a7b05e786
changeset aa385e2ce232 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=aa385e2ce232
author: aefimov
date: Mon Sep 17 14:40:46 2018 +0100
Merge
changeset 3be9240dca3f in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=3be9240dca3f
author: diazhou
date: Thu Sep 27 05:49:17 2018 -0700
Added tag jdk8u192-b25 for changeset aa385e2ce232
changeset 9d6b5362a75d in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=9d6b5362a75d
author: aefimov
date: Sun Sep 30 19:52:56 2018 +0100
Merge
changeset 92332c878484 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=92332c878484
author: diazhou
date: Wed Oct 03 22:44:18 2018 -0700
Added tag jdk8u192-b11 for changeset 9d6b5362a75d
changeset 854c8339d414 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=854c8339d414
author: aefimov
date: Sat Oct 06 10:28:09 2018 +0100
Merge
changeset 88ceae600dc8 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=88ceae600dc8
author: andrew
date: Wed Jan 16 01:02:46 2019 +0000
Merge jdk8u192-b12
changeset 3aa1896554b2 in /hg/icedtea8-forest/nashorn
details: http://icedtea.classpath.org/hg/icedtea8-forest/nashorn?cmd=changeset;node=3aa1896554b2
author: andrew
date: Thu Jan 24 19:13:09 2019 +0000
Added tag icedtea-3.11.0pre02 for changeset 88ceae600dc8
diffstat:
.hgtags | 16 +++++++
src/jdk/nashorn/internal/runtime/CompiledFunction.java | 3 +
test/script/basic/JDK-8186646.js | 39 ++++++++++++++++++
3 files changed, 58 insertions(+), 0 deletions(-)
diffs (79 lines):
diff -r 287a6c783833 -r 3aa1896554b2 .hgtags
--- a/.hgtags Tue Jan 08 04:20:12 2019 +0000
+++ b/.hgtags Thu Jan 24 19:13:09 2019 +0000
@@ -1015,3 +1015,19 @@
e6205ecef830a71d73a14d1f18765cf4c3ac7773 jdk8u191-b11
6cf21321f3674c4806cd2c911255f976f024db0d icedtea-3.10.0
6cf21321f3674c4806cd2c911255f976f024db0d icedtea-3.11.0pre00
+287a6c783833005c9db86b7a7dfc85b52bfc36e1 icedtea-3.11.0pre01
+5b549167a92971d6793079c702fa2fd79a987cbc jdk8u182-b00
+a57083d7fe9ac674c0841db6849140424bb16eef jdk8u192-b00
+bc4618963547efc17931174f57bea387f89cd5e9 jdk8u192-b01
+1087a0aaf6a1e7f4c7708a7829b62c8a70b53782 jdk8u192-b02
+ab21284e5eaa5d6e521f679603efb56237f2286e jdk8u192-b03
+2056d0c035e847b13083d4cf63d1003174e6b0d9 jdk8u192-b04
+0d65cee9040926c0625b34e00450551f37042dc5 jdk8u192-b05
+b1dfea491c0571cd5ffb21b3b0778ff90b9efafe jdk8u192-b06
+d42d488fd8dcbe13c05958fd2b98696572157ee1 jdk8u192-b07
+9d1371fc0987c02d1321d7263d88a782e5e5cdfa jdk8u192-b08
+456c0d45c43bfbb5414b9ae0ca68227132b4af7b jdk8u192-b09
+e58a7b05e786554d3447c3b04b11873314b549cd jdk8u192-b10
+aa385e2ce23240f1466dbfcda5fd96ad325b109d jdk8u192-b25
+9d6b5362a75ddef6ed30fe9892e95d7cfdff0ed8 jdk8u192-b11
+88ceae600dc83c6adc7cf6a062eb623c4e587163 icedtea-3.11.0pre02
diff -r 287a6c783833 -r 3aa1896554b2 src/jdk/nashorn/internal/runtime/CompiledFunction.java
--- a/src/jdk/nashorn/internal/runtime/CompiledFunction.java Tue Jan 08 04:20:12 2019 +0000
+++ b/src/jdk/nashorn/internal/runtime/CompiledFunction.java Thu Jan 24 19:13:09 2019 +0000
@@ -525,6 +525,9 @@
final int csParamCount = getParamCount(other);
final boolean csIsVarArg = csParamCount == Integer.MAX_VALUE;
+ if (csIsVarArg && isApplyToCall()) {
+ return false; // apply2call function must be called with exact number of parameters
+ }
final int thisThisIndex = needsCallee() ? 1 : 0; // Index of "this" parameter in this function's type
final int fnParamCountNoCallee = fnParamCount - thisThisIndex;
diff -r 287a6c783833 -r 3aa1896554b2 test/script/basic/JDK-8186646.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/script/basic/JDK-8186646.js Thu Jan 24 19:13:09 2019 +0000
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/**
+ * JDK-8186646: Nashorn: "duplicate code" assertion when binding a vararg function that just passes arguments along
+ *
+ * @test
+ * @run
+ */
+
+var fn2 = function () {};
+
+var fn = function () {
+ fn2.apply(null, arguments);
+};
+
+fn();
+fn.bind();
+
More information about the distro-pkg-dev
mailing list