Examples of EvalPolicy


Examples of com.oracle.truffle.r.runtime.data.RPromise.EvalPolicy

                if (newNames.length > newLength) {
                    newNames = Arrays.copyOf(newNames, newLength);
                    newVarArgs = Arrays.copyOf(newVarArgs, newLength);
                }

                EvalPolicy evalPolicy = promiseWrapper.getEvalPolicy(function, builtinRootNode, fi);
                resArgs[fi] = PromiseNode.createVarArgs(varArgs.getSourceSection(), evalPolicy, newVarArgs, newNames, closureCache, callSrc);
            } else {
                // Normal argument: just wrap in promise
                RNode defaultArg = fi < defaultArgs.length ? defaultArgs[fi] : null;
                resArgs[fi] = wrap(promiseWrapper, function, formals, builtinRootNode, closureCache, arg, defaultArg, fi);
View Full Code Here

Examples of com.oracle.truffle.r.runtime.data.RPromise.EvalPolicy

                return ConstantNode.create(RMissing.instance);
            }
        }

        // Create promise
        EvalPolicy evalPolicy = promiseWrapper.getEvalPolicy(function, builtinRootNode, logicalIndex);
        Closure closure = closureCache.getOrCreateClosure(expr);
        Closure defaultClosure = formals.getOrCreateClosure(defaultValue);
        return PromiseNode.create(expr.getSourceSection(), RPromiseFactory.create(evalPolicy, promiseType, closure, defaultClosure));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.