comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLAddNode.java @ 13960:7392b9e0470b

SL: Small JavaDoc fixes
author Christian Wimmer <christian.wimmer@oracle.com>
date Sat, 15 Feb 2014 07:59:48 -0800
parents ff3136ecb5a7
children c929a4a3b6c5
comparison
equal deleted inserted replaced
13959:96bd95f62d92 13960:7392b9e0470b
68 * <p> 68 * <p>
69 * This specialization is automatically selected by the Truffle DSL if both the left and right 69 * This specialization is automatically selected by the Truffle DSL if both the left and right
70 * operand are {@link BigInteger} values. Because the type system defines an 70 * operand are {@link BigInteger} values. Because the type system defines an
71 * {@link ImplicitCast implicit conversion} from {@code long} to {@link BigInteger} in 71 * {@link ImplicitCast implicit conversion} from {@code long} to {@link BigInteger} in
72 * {@link SLTypes#castBigInteger(long)}, this specialization is also taken if the left or the 72 * {@link SLTypes#castBigInteger(long)}, this specialization is also taken if the left or the
73 * right operand is a {@code long} value. 73 * right operand is a {@code long} value. Because the {@link #add(long, long) long}
74 * specialization} has the {@code rewriteOn} attribute, this specialization is also taken if
75 * both input values are {@code long} values but the primitive addition overflows.
74 */ 76 */
75 @Specialization 77 @Specialization
76 protected BigInteger add(BigInteger left, BigInteger right) { 78 protected BigInteger add(BigInteger left, BigInteger right) {
77 return left.add(right); 79 return left.add(right);
78 } 80 }