Package com.oracle.truffle.r.nodes.access.ReadVariableNode

Examples of com.oracle.truffle.r.nodes.access.ReadVariableNode.BuiltinFunctionVariableNode


     * @param function the resolved {@link RFunction}.
     * @param symbol The name of the function
     */
    public static RCallNode createInternalCall(VirtualFrame frame, SourceSection src, RCallNode internalCallArg, RFunction function, Symbol symbol) {
        CompilerDirectives.transferToInterpreter();
        BuiltinFunctionVariableNode functionNode = BuiltinFunctionVariableNodeFactory.create(function, symbol);
        assert internalCallArg instanceof UninitializedCallNode;
        UninitializedCallNode current = new UninitializedCallNode(functionNode, ((UninitializedCallNode) internalCallArg).args);
        current.assignSourceSection(src);
        return current.createCacheNode(frame, function);
    }
View Full Code Here


     */
    public static Object findFunctionName(Node node, boolean quote) {
        RNode child = findFunctionNode(node);
        if (child instanceof ReadVariableNode) {
            if (child instanceof BuiltinFunctionVariableNode) {
                BuiltinFunctionVariableNode bvn = (BuiltinFunctionVariableNode) child;
                return bvn.getFunction();
            } else {
                return createRSymbol(child);
            }
        } else if (child instanceof OpsGroupDispatchNode) {
            OpsGroupDispatchNode opsGroupDispatchNode = (OpsGroupDispatchNode) child;
View Full Code Here

TOP

Related Classes of com.oracle.truffle.r.nodes.access.ReadVariableNode.BuiltinFunctionVariableNode

Copyright © 2018 www.massapicom. 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.