mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-21 21:33:07 +00:00
8184893: jdk8u152 b06 : issues with nashorn when running kraken benchmarks
Reviewed-by: jlaskey, sdama, sundar
This commit is contained in:
parent
e21803da21
commit
6d024e7981
@ -77,7 +77,6 @@ final class WeighNodes extends NodeOperatorVisitor<LexicalContext> {
|
||||
static final long CALL_WEIGHT = 10;
|
||||
static final long CATCH_WEIGHT = 10;
|
||||
static final long COMPARE_WEIGHT = 6;
|
||||
static final long CONST_WEIGHT = 2;
|
||||
static final long CONTINUE_WEIGHT = 1;
|
||||
static final long IF_WEIGHT = 2;
|
||||
static final long LITERAL_WEIGHT = 10;
|
||||
@ -211,11 +210,6 @@ final class WeighNodes extends NodeOperatorVisitor<LexicalContext> {
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Override
|
||||
public boolean enterLiteralNode(final LiteralNode literalNode) {
|
||||
if (literalNode instanceof LiteralNode.PrimitiveLiteralNode) {
|
||||
weight += CONST_WEIGHT;
|
||||
return false;
|
||||
}
|
||||
|
||||
weight += LITERAL_WEIGHT;
|
||||
|
||||
if (literalNode instanceof ArrayLiteralNode) {
|
||||
|
||||
37
nashorn/test/script/basic/JDK-8184893.js
Normal file
37
nashorn/test/script/basic/JDK-8184893.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user