comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLAddNode.java @ 18763:301fea50e42e

SL: migrate SL to use @GenerateNodeFactory.
author Christian Humer <christian.humer@gmail.com>
date Mon, 29 Dec 2014 23:39:03 +0100
parents 6fa518bf5d1b
children bf846a813688
comparison
equal deleted inserted replaced
18762:0ef23ff7d5a1 18763:301fea50e42e
36 * as well as String concatenation if one of the operands is a String. 36 * as well as String concatenation if one of the operands is a String.
37 * <p> 37 * <p>
38 * Type specialization on the input values is essential for the performance. This is achieved via 38 * Type specialization on the input values is essential for the performance. This is achieved via
39 * node rewriting: specialized subclasses handle just a single type, so that the generic node that 39 * node rewriting: specialized subclasses handle just a single type, so that the generic node that
40 * can handle all types is used only in cases where different types were encountered. The subclasses 40 * can handle all types is used only in cases where different types were encountered. The subclasses
41 * are automatically generated by the Truffle DSL. In addition, a {@link SLAddNodeFactory factory 41 * are automatically generated by the Truffle DSL. In addition, a {@link SLAddNodeGen factory class}
42 * class} is generated that provides, e.g., {@link SLAddNodeFactory#create node creation}. 42 * is generated that provides, e.g., {@link SLAddNodeGen#create node creation}.
43 */ 43 */
44 @NodeInfo(shortName = "+") 44 @NodeInfo(shortName = "+")
45 public abstract class SLAddNode extends SLBinaryNode { 45 public abstract class SLAddNode extends SLBinaryNode {
46 46
47 public SLAddNode(SourceSection src) { 47 public SLAddNode(SourceSection src) {