Trufle DLS @Specialization error
Wei Zhang
wei.zhang at uci.edu
Tue Aug 20 22:12:06 PDT 2013
Hi guys,
I'm writing a Python interpreter using Truffle.
After I merged with the tip of basic-truffle today, I got some errors
complaining about @Specialization annotation only on methods with
boolean parameters.
Like this one:
@Specialization
boolean doBoolean(boolean operand) {
return operand;
}
The full source code file is at:
https://bitbucket.org/ssllab/zippy/src/0a48f75b9f38bbc42882fa8c781533a2aff5fcf4/graal/edu.uci.python.nodes/src/edu/uci/python/nodes/expressions/BooleanCastNode.java?at=default
The error prompt shown in eclipse is:
Method signature (boolean) does not match to the expected signature:
<types0> doBoolean([VirtualFrame frame], [FunctionRootNode
funcRoot], [boolean isBreak], [StatementNode loopHeader], <types0>
operand)
<types0> = {void, int, BigInteger, double, PComplex, char,
boolean, String, PDictionary, PList, PTuple, PSequence, PSet,
PFrozenSet, PBaseSet, PIntegerArray, PDoubleArray, PCharArray, PArray,
PSlice, PObject, PCallable, Object}
Which, I think, doesn't really explain what it is complaining about.
Any recent change regarding how this annotation should be used?
Thanks in advance.
/Wei
Zhang, Wei
UCI-EECS-CSS
More information about the graal-dev
mailing list