提交 40adb7a0 编写于 作者: H hannesw

8184893: jdk8u152 b06 : issues with nashorn when running kraken benchmarks

Reviewed-by: jlaskey, sdama, sundar
上级 740b7a14
......@@ -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) {
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册