Mercurial > hg > graal-jvmci-8
changeset 19787:b249bdba508b
Truffle-DSL: @Cached javadoc fixes.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 11 Mar 2015 15:44:32 +0100 |
parents | 7108d2319169 |
children | b3f566135b56 |
files | graal/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/Cached.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/Cached.java Wed Mar 11 11:32:13 2015 +0100 +++ b/graal/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/Cached.java Wed Mar 11 15:44:32 2015 +0100 @@ -86,7 +86,7 @@ * * <pre> * @Specialization - * void doCached(int operand, @Local("operand") int cachedOperand) { + * void doCached(int operand, @Cached("operand") int cachedOperand) { * CompilerAsserts.compilationConstant(cachedOperand); * ... * } @@ -111,7 +111,7 @@ * specialization instantiation limit is <code>3</code>. * * <pre> - * @Specialization(guards = "==(operand, cachedOperand)") + * @Specialization(guards = "operand == cachedOperand") * void doCached(int operand, @Cached("operand") int cachedOperand) { * CompilerAsserts.compilationConstant(cachedOperand); * ... @@ -139,7 +139,7 @@ * <code>doCached</code> instances remain but no new instances are created. * * <code> - * @Specialization(guards = "==(operand, cachedOperand)") + * @Specialization(guards = "operand == cachedOperand") * void doCached(int operand, @Cached("operand") int cachedOperand) { * CompilerAsserts.compilationConstant(cachedOperand); * ... @@ -209,7 +209,7 @@ * * <pre> * @Specialization - * void s(int operand, @Local("create()") BranchProfile profile) { + * void s(int operand, @Cached("create()") BranchProfile profile) { * } * </pre> *