Package org.openquark.cal.internal.machine.g.Executor

Examples of org.openquark.cal.internal.machine.g.Executor.GExecutionContext


     * @param executor
     * @throws CALExecutorException
     */
    private final void evaluateInternal (Executor executor) throws CALExecutorException {
        Executor.GStack stack = executor.stack;
        GExecutionContext executionContext = (GExecutionContext)executor.getContext();
       
        if (GENERATE_DEBUG_CODE && executionContext.isDebugProcessingNeeded(getName().getQualifiedName())) {
            int arity = getArity();
            Node args[] = new Node[arity];

            // The arguments are on the top of the stack.
            for (int i = 0; i < arity; ++i) {
                args[i] = stack.get(stack.size() - i - 1);
            }
           
            // Let the executionContext do the debug processing.
            executionContext.debugProcessing(getName().getQualifiedName(), args);
          
        }
       
        // Pop the arguments off the stack and put in an array.
        Node[] args = new Node[getArity()];
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.machine.g.Executor.GExecutionContext

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.