Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLLogicalOrNode.java @ 16512:abe7128ca473
SL: upgrade source attribution
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Mon, 14 Jul 2014 16:51:41 -0700 |
parents | 64c77f0577bb |
children | 93016f2f3f16 |
comparison
equal
deleted
inserted
replaced
16511:aee02665e505 | 16512:abe7128ca473 |
---|---|
22 */ | 22 */ |
23 package com.oracle.truffle.sl.nodes.expression; | 23 package com.oracle.truffle.sl.nodes.expression; |
24 | 24 |
25 import com.oracle.truffle.api.dsl.*; | 25 import com.oracle.truffle.api.dsl.*; |
26 import com.oracle.truffle.api.nodes.*; | 26 import com.oracle.truffle.api.nodes.*; |
27 import com.oracle.truffle.api.source.*; | |
27 import com.oracle.truffle.sl.nodes.*; | 28 import com.oracle.truffle.sl.nodes.*; |
28 | 29 |
29 /** | 30 /** |
30 * This class is similar to the {@link SLLogicalAndNode}. | 31 * This class is similar to the {@link SLLogicalAndNode}. |
31 */ | 32 */ |
32 @NodeInfo(shortName = "||") | 33 @NodeInfo(shortName = "||") |
33 @SuppressWarnings("unused") | 34 @SuppressWarnings("unused") |
34 public abstract class SLLogicalOrNode extends SLBinaryNode { | 35 public abstract class SLLogicalOrNode extends SLBinaryNode { |
36 | |
37 public SLLogicalOrNode(SourceSection src) { | |
38 super(src); | |
39 } | |
35 | 40 |
36 @ShortCircuit("rightNode") | 41 @ShortCircuit("rightNode") |
37 protected boolean needsRightNode(boolean left) { | 42 protected boolean needsRightNode(boolean left) { |
38 return !left; | 43 return !left; |
39 } | 44 } |