comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLLogicalOrNode.java @ 21491:28a137691ff2

SL: Remove useless rewriteOn parameter in SLLogicalOrNode#doBoolean
author Christian Humer <christian.humer@gmail.com>
date Tue, 19 May 2015 17:48:50 +0200
parents c0455554d45b
children
comparison
equal deleted inserted replaced
21490:3286fb5fea4a 21491:28a137691ff2
50 @ShortCircuit("rightNode") 50 @ShortCircuit("rightNode")
51 protected boolean needsRightNode(Object left) { 51 protected boolean needsRightNode(Object left) {
52 return left instanceof Boolean && needsRightNode(((Boolean) left).booleanValue()); 52 return left instanceof Boolean && needsRightNode(((Boolean) left).booleanValue());
53 } 53 }
54 54
55 @Specialization(rewriteOn = RuntimeException.class) 55 @Specialization
56 protected boolean doBoolean(boolean left, boolean hasRight, boolean right) { 56 protected boolean doBoolean(boolean left, boolean hasRight, boolean right) {
57 return left || right; 57 return left || right;
58 } 58 }
59 } 59 }