Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/LogicalAndNode.java @ 9222:aa9ffb3a715e
Updated Truffle-SL to new codegen API.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 20 Apr 2013 12:17:27 +0200 |
parents | 31da1716950f |
children | 79041ab43660 |
comparison
equal
deleted
inserted
replaced
9221:67bee207f20c | 9222:aa9ffb3a715e |
---|---|
25 import com.oracle.truffle.api.codegen.*; | 25 import com.oracle.truffle.api.codegen.*; |
26 | 26 |
27 @SuppressWarnings("unused") | 27 @SuppressWarnings("unused") |
28 public abstract class LogicalAndNode extends BinaryNode { | 28 public abstract class LogicalAndNode extends BinaryNode { |
29 | 29 |
30 public LogicalAndNode(TypedNode leftNode, TypedNode rightNode) { | |
31 super(leftNode, rightNode); | |
32 } | |
33 | |
34 public LogicalAndNode(LogicalAndNode node) { | |
35 this(node.leftNode, node.rightNode); | |
36 } | |
37 | |
38 @ShortCircuit("rightNode") | 30 @ShortCircuit("rightNode") |
39 public boolean needsRightNode(boolean left) { | 31 public boolean needsRightNode(boolean left) { |
40 return left; | 32 return left; |
41 } | 33 } |
42 | 34 |