Search in sources :

Example 1 with SLUndefinedFunctionRootNode

use of com.oracle.truffle.sl.nodes.SLUndefinedFunctionRootNode in project graal by oracle.

the class SLLanguage method getOrCreateUndefinedFunction.

public RootCallTarget getOrCreateUndefinedFunction(TruffleString name) {
    RootCallTarget target = undefinedFunctions.get(name);
    if (target == null) {
        target = new SLUndefinedFunctionRootNode(this, name).getCallTarget();
        RootCallTarget other = undefinedFunctions.putIfAbsent(name, target);
        if (other != null) {
            target = other;
        }
    }
    return target;
}
Also used : SLUndefinedFunctionRootNode(com.oracle.truffle.sl.nodes.SLUndefinedFunctionRootNode) RootCallTarget(com.oracle.truffle.api.RootCallTarget)

Aggregations

RootCallTarget (com.oracle.truffle.api.RootCallTarget)1 SLUndefinedFunctionRootNode (com.oracle.truffle.sl.nodes.SLUndefinedFunctionRootNode)1