comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLLogicalAndNode.java @ 20953:c0455554d45b

SL: some minor simplifications.
author Christian Humer <christian.humer@gmail.com>
date Tue, 14 Apr 2015 15:16:14 +0200
parents abe7128ca473
children
comparison
equal deleted inserted replaced
20952:833e088ee7d3 20953:c0455554d45b
21 * questions. 21 * questions.
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.frame.*;
26 import com.oracle.truffle.api.nodes.*; 27 import com.oracle.truffle.api.nodes.*;
27 import com.oracle.truffle.api.source.*; 28 import com.oracle.truffle.api.source.*;
28 import com.oracle.truffle.sl.nodes.*; 29 import com.oracle.truffle.sl.nodes.*;
29 30
30 /** 31 /**
41 public abstract class SLLogicalAndNode extends SLBinaryNode { 42 public abstract class SLLogicalAndNode extends SLBinaryNode {
42 43
43 public SLLogicalAndNode(SourceSection src) { 44 public SLLogicalAndNode(SourceSection src) {
44 super(src); 45 super(src);
45 } 46 }
47
48 @Override
49 public abstract boolean executeBoolean(VirtualFrame frame);
46 50
47 /** 51 /**
48 * This method is called after the left child was evaluated, but before the right child is 52 * This method is called after the left child was evaluated, but before the right child is
49 * evaluated. The right child is only evaluated when the return value is {code true}. 53 * evaluated. The right child is only evaluated when the return value is {code true}.
50 */ 54 */