Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValueNode.java @ 21535:90fd03612631
removed use of lambda in JVMCI/Graal initialization code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 24 May 2015 16:40:29 +0200 |
parents | 8fc336a04d77 |
children | 48c1ebd24120 |
comparison
equal
deleted
inserted
replaced
21534:2cb94a7ae1b7 | 21535:90fd03612631 |
---|---|
99 */ | 99 */ |
100 public final boolean isConstant() { | 100 public final boolean isConstant() { |
101 return this instanceof ConstantNode; | 101 return this instanceof ConstantNode; |
102 } | 102 } |
103 | 103 |
104 private static final NodePredicate IS_CONSTANT = node -> node instanceof ConstantNode; | 104 private static final NodePredicate IS_CONSTANT = new NodePredicate() { |
105 public boolean apply(Node n) { | |
106 return n instanceof ConstantNode; | |
107 } | |
108 }; | |
105 | 109 |
106 public static NodePredicate isConstantPredicate() { | 110 public static NodePredicate isConstantPredicate() { |
107 return IS_CONSTANT; | 111 return IS_CONSTANT; |
108 } | 112 } |
109 | 113 |