Package soot

Examples of soot.FastHierarchy$Interval


        }

        if ( optimizable )
        {
//          System.out.println( "interval = " + Util.printInterval( interval ) );
          final Interval sliceInterval = t.transform( new BoundingBox( interval ) ).getInterval();
//          System.out.println( "transformed interval = " + Util.printInterval( sliceInterval ) );
          if ( iterableSource.supportsOptimizedCursor( sliceInterval ) )
          {
            // check for FlatIterationOrder
            boolean flat = FlatIterationOrder.class.isInstance( iterableSource.subIntervalIterationOrder( sliceInterval ) );
View Full Code Here


    // doesn't fit the interval, will force unoptimized cursor
    final long[] dimensionsUnoptimized = new long[] { 5001, 5000, 2, 2 };

    // fits the interval, should be optimized
    final Interval interval = new FinalInterval( new long[] { 0, 0, 1, 1 }, new long[] { 4999, 4999, 1, 1 } );

    // create and fill images
    final ArrayImg< IntType, ? > arrayImg = ArrayImgs.ints( dimensions ); // fits
                                        // the
                                        // interval
View Full Code Here

    }
    public boolean wantTypes( Local receiver ) {
        return receiverToSites.get(receiver) != null;
    }
    public void addType( Local receiver, Context srcContext, Type type, Context typeContext ) {
        FastHierarchy fh = Scene.v().getOrMakeFastHierarchy();
        for( Iterator siteIt = ((Collection) receiverToSites.get( receiver )).iterator(); siteIt.hasNext(); ) {
            final VirtualCallSite site = (VirtualCallSite) siteIt.next();
            InstanceInvokeExpr iie = site.iie();
            if( site.kind() == Kind.THREAD
            && !fh.canStoreType( type, clRunnable ) )
                continue;

            if( site.iie() instanceof SpecialInvokeExpr && site.kind != Kind.THREAD ) {
              targetsQueue.add( VirtualCalls.v().resolveSpecial(
                            (SpecialInvokeExpr) site.iie(),
View Full Code Here

        // special casing.
        ModelTransformer.implementExecutableInterface(entityInstanceClass);

        // Reinitialize the hierarchy, since we've added classes.
        Scene.v().setActiveHierarchy(new Hierarchy());
        Scene.v().setFastHierarchy(new FastHierarchy());

        // Inline all methods in the class that are called from
        // within the class.
        ModelTransformer.inlineLocalCalls(entityInstanceClass);
View Full Code Here

            CompositeActor model) {
        copyAttributesOtherThanVariable(model);

        // Reinitialize the hierarchy, since we've added classes.
        Scene.v().setActiveHierarchy(new Hierarchy());
        Scene.v().setFastHierarchy(new FastHierarchy());
    }
View Full Code Here

            }
        }

        // Reset the hierarchy, since we've changed superclasses and such.
        Scene.v().setActiveHierarchy(new Hierarchy());
        Scene.v().setFastHierarchy(new FastHierarchy());

        // Fix the specialInvokes.
        for (Iterator i = Scene.v().getApplicationClasses().iterator(); i
                .hasNext();) {
            SootClass theClass = (SootClass) i.next();
View Full Code Here

                        if (debug) {
                            System.out.println("value = " + value);
                        }

                        Scene.v().setActiveHierarchy(new Hierarchy());
                        Scene.v().setFastHierarchy(new FastHierarchy());

                        boolean flag = _inlineTokenMethodsIn(method, body,
                                stmt, box, localDefs, localUses, typeAnalysis,
                                depth, unsafeLocalSet, debug);
                        doneSomething |= flag;
View Full Code Here

    }

    public static void eliminateCastsAndInstanceOf(Body body, String phaseName,
            Set unsafeLocalSet, boolean debug) {
        Scene.v().setActiveHierarchy(new Hierarchy());
        Scene.v().setFastHierarchy(new FastHierarchy());

        for (Iterator units = body.getUnits().iterator(); units.hasNext();) {
            Unit unit = (Unit) units.next();

            for (Iterator boxes = unit.getUseBoxes().iterator(); boxes
View Full Code Here

        implementExecutableInterface(entityInstanceClass);

        // Reinitialize the hierarchy, since we've added classes.
        Scene.v().setActiveHierarchy(new Hierarchy());
        Scene.v().setFastHierarchy(new FastHierarchy());

        {
            Set locallyModifiedAttributeSet = _constAnalysis
                    .getVariablesWithChangeContext(entity);
View Full Code Here

                + ", " + options + ")");

        boolean debug = PhaseOptions.getBoolean(options, "debug");

        Scene.v().setActiveHierarchy(new Hierarchy());
        Scene.v().setFastHierarchy(new FastHierarchy());

        //Hierarchy h = Scene.v().getActiveHierarchy();

        for (Iterator entities = _model.deepEntityList().iterator(); entities
                .hasNext();) {
View Full Code Here

TOP

Related Classes of soot.FastHierarchy$Interval

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.