comparison truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/expression/DSLExpressionResolver.java @ 22003:5bc7f7b867ab

Making debugger always on for each TruffleVM execution. Introducing EventConsumer to process such debugger events. Requesting each RootNode to be associated with a TruffleLanguage, so debugger can find out proper context for each Node where executions gets suspended.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Sat, 18 Jul 2015 18:03:36 +0200
parents 9c8c0937da41
children dc83cc1f94f2
comparison
equal deleted inserted replaced
22002:324997830dc9 22003:5bc7f7b867ab
185 for (DSLExpression expression : call.getParameters()) { 185 for (DSLExpression expression : call.getParameters()) {
186 arguments.append(sep).append(ElementUtils.getSimpleName(expression.getResolvedType())); 186 arguments.append(sep).append(ElementUtils.getSimpleName(expression.getResolvedType()));
187 sep = ", "; 187 sep = ", ";
188 } 188 }
189 // name mismatch 189 // name mismatch
190 throw new InvalidExpressionException(String.format("The method %s in the type %s is not applicable for the arguments %s.", // 190 throw new InvalidExpressionException(String.format("The method %s in the type %s is not applicable for the arguments %s.", //
191 ElementUtils.getReadableSignature(foundWithName), // 191 ElementUtils.getReadableSignature(foundWithName), //
192 ElementUtils.getSimpleName((TypeElement) foundWithName.getEnclosingElement()), arguments.toString())); 192 ElementUtils.getSimpleName((TypeElement) foundWithName.getEnclosingElement()), arguments.toString()));
193 } 193 }
194 } 194 }
195 } 195 }
196 196