Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/LessThanNode.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 | 33e08aca06ff |
children | 447465567e6f |
comparison
equal
deleted
inserted
replaced
9221:67bee207f20c | 9222:aa9ffb3a715e |
---|---|
26 | 26 |
27 import com.oracle.truffle.api.codegen.*; | 27 import com.oracle.truffle.api.codegen.*; |
28 | 28 |
29 public abstract class LessThanNode extends BinaryNode { | 29 public abstract class LessThanNode extends BinaryNode { |
30 | 30 |
31 public LessThanNode(TypedNode left, TypedNode right) { | |
32 super(left, right); | |
33 } | |
34 | |
35 public LessThanNode(LessThanNode node) { | |
36 this(node.leftNode, node.rightNode); | |
37 } | |
38 | |
39 @Specialization | 31 @Specialization |
40 public boolean doInteger(int left, int right) { | 32 public boolean doInteger(int left, int right) { |
41 return left < right; | 33 return left < right; |
42 } | 34 } |
43 | 35 |