use of com.oracle.truffle.llvm.runtime.debug.debugexpr.nodes.DebugExprExecutableNode in project graal by oracle.
the class LLVMLanguage method parse.
@Override
protected ExecutableNode parse(InlineParsingRequest request) {
Object globalScope = getScope(getContext());
final DebugExprParser d = new DebugExprParser(request, globalScope);
try {
return new DebugExprExecutableNode(d.parse());
} catch (DebugExprException | LLVMParserException e) {
// error found during parsing
String errorMessage = e.getMessage();
return new ExecutableNode(this) {
@Override
public Object execute(VirtualFrame frame) {
return errorMessage;
}
};
}
}
Aggregations