Examples of Activation


Examples of org.jruby.truffle.runtime.backtrace.Activation

             * we might want to make it optional - I think it's only used for some
             * features beyond what MRI does like printing locals in backtraces.
             */

            if (currentNode != null && Truffle.getRuntime().getCurrentFrame() != null) {
                activations.add(new Activation(currentNode, Truffle.getRuntime().getCurrentFrame().getFrame(FrameInstance.FrameAccess.MATERIALIZE, true).materialize()));
            }

            Truffle.getRuntime().iterateFrames(new FrameInstanceVisitor<RubyMethod>() {

                @Override
                public RubyMethod visitFrame(FrameInstance frameInstance) {
                    // Multiple top level methods (require) introduce null call nodes - ignore them
                   
                    if (frameInstance.getCallNode() != null) {
                        activations.add(new Activation(frameInstance.getCallNode(),
                                frameInstance.getFrame(FrameInstance.FrameAccess.MATERIALIZE, true).materialize()));
                    }

                    return null;
                }
View Full Code Here

Examples of org.nlogo.nvm.Activation

    return super.toString() + ":" + procedure.name;
  }

  @Override
  public Object report(Context context) throws LogoException {
    Activation newActivation =
        new Activation(procedure, context.activation, context.ip);
    for (int i = 0; i < (procedure.args.size() - procedure.localsCount); i++) {
      newActivation.args[i] = args[i].report(context);
    }
    Object result = context.callReporterProcedure(newActivation);
    if (result == null) {
View Full Code Here

Examples of org.qi4j.api.activation.Activation

    }

    @SuppressWarnings( "TooBroadCatch" )
    private void passivateOneChild( Set<Exception> exceptions )
    {
        Activation activeChild = activeChildren.removeFirst();
        try
        {
            activeChild.passivate();
        }
        catch( PassivationException ex )
        {
            exceptions.addAll( ex.causes() );
        }
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.