Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLLogicalOrNode.java @ 20953:c0455554d45b
SL: some minor simplifications.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 14 Apr 2015 15:16:14 +0200 |
parents | 93016f2f3f16 |
children | 28a137691ff2 |
comparison
equal
deleted
inserted
replaced
20952:833e088ee7d3 | 20953:c0455554d45b |
---|---|
37 | 37 |
38 public SLLogicalOrNode(SourceSection src) { | 38 public SLLogicalOrNode(SourceSection src) { |
39 super(src); | 39 super(src); |
40 } | 40 } |
41 | 41 |
42 @Override | |
43 public abstract boolean executeBoolean(VirtualFrame frame); | |
44 | |
42 @ShortCircuit("rightNode") | 45 @ShortCircuit("rightNode") |
43 protected boolean needsRightNode(boolean left) { | 46 protected boolean needsRightNode(boolean left) { |
44 return !left; | 47 return !left; |
45 } | 48 } |
46 | 49 |