Examples of Instruction


Examples of MipsSim.Instruction

        */
        boolean needsStall = false;
        for (int i = 5; i<7; i++) {
            PipelineLatch otherLatch = SimUtils.getLatchAt(i);
            if (otherLatch != null) {
                Instruction otherInst = otherLatch.Inst;
                if ((otherInst.name == InstName.LD) && (this.Inst.src1 != null)
                        && (otherInst.dest.RegRef == this.Inst.src1.RegRef)) {
                    needsStall = true;
                    break;
                } else if ((otherInst.name == InstName.LD) && (this.Inst.src2 != null)
View Full Code Here

Examples of aQute.bnd.osgi.Instruction

        }


        public DependencyFilter( String expression, String defaultValue )
        {
            m_instruction = new Instruction( expression );
            m_defaultValue = defaultValue;
        }
View Full Code Here

Examples of aQute.lib.osgi.Instruction

        String importPackageInstructions = overrideInstructions.get(IMPORT_PACKAGE);
        if (importPackageInstructions != null) {
            List<String> packageInstructions = ElementParser.parseDelimitedString(importPackageInstructions, ',', true);
            for (String packageInstruction : packageInstructions) {
                PackageDefinition packageDefinition = new PackageDefinition(packageInstruction);
                Instruction instruction = Instruction.getPattern(packageDefinition.packageName);
                System.out.println("Compiled import instruction '" + packageInstruction + "' -> " + instruction);
                importOverrideInstructions.add(new InstructionDefinition(packageDefinition, instruction));
            }
        }
        String exportPackageInstructions = overrideInstructions.get(EXPORT_PACKAGE);
        if (exportPackageInstructions != null) {
            List<String> packageInstructions = ElementParser.parseDelimitedString(exportPackageInstructions, ',', true);
            for (String packageInstruction : packageInstructions) {
                PackageDefinition packageDefinition = new PackageDefinition(packageInstruction);
                Instruction instruction = Instruction.getPattern(packageDefinition.packageName);
                System.out.println("Compiled export instruction '" + packageInstruction + "' -> " + instruction);
                exportOverrideInstructions.add(new InstructionDefinition(packageDefinition, instruction));
            }
        }
    }
View Full Code Here

Examples of alt.jiapi.reflect.Instruction

     */
    public HotSpot[] getHotSpots() {
        ArrayList al = new ArrayList();

        for (int i = 0; i < il.size(); i++) {
            Instruction ins = il.get(i);
            short opCode = ins.getOpcode();

            for (int j = 0; j < opCodes.length; j++) {
                if (opCode == opCodes[j]) {
                    HotSpot hs = createHotSpot(il, i);
//                     if (rule.match(hs.getName()))
View Full Code Here

Examples of au.edu.qut.yawl.schema.Instruction

                    // remove it and add the instruction for this parameter

                    if (instructions.contains(instruction) == true) {

                        // Matching element REUSE instruction found.
                        Instruction tempInstruction;
                        int position = instructions.indexOf(instruction);
                        tempInstruction = (Instruction) instructions.get(position);
                        if (tempInstruction.getElementName().compareTo(instruction.getElementName()) == 0) {
                            instructions.remove(position);
                        }
                    }
                    else {
                      logger.debug("No matching element REUSE instruction found: " + elementName);
View Full Code Here

Examples of br.com.gmartins.simbler.instructions.Instruction

     * This method identifies the kind of instruction and generates the respective data.
     * @return
     */
    private StringBuilder recognizeWord() {
        StringBuilder builder = new StringBuilder();
        Instruction instruction = null;
        try {
            instruction = getInstructionAt(linePosition);
        } catch (java.lang.IndexOutOfBoundsException ex) {
            //System.out.println("Falha ao recuperar instrução número " + linePosition);
            // Aqui poderia tentar chamar um "Silent Compile". Esse erro ocorre quando não consigo recuperar a instrução da linha, após da enter...
        }
        if (instruction != null) {
            if (isNumber()) {
                Value value = instruction.getValue();
                builder.append("<HTML>");
                builder.append("<center><b>Valor Numérico</b></center> ");
                builder.append("<br>");
                builder.append("<b>Binário:</b> ").append(value.toBinary());
                builder.append("<br>");
                builder.append("<b>Decimal:</b> ").append(value.toDecimal());
                builder.append("<br>");
                builder.append("<b>Hexadecimal:</b> ").append(value.toHex());
                builder.append("</HTML>");
            }

            if (isMemoryDealer()) {
                Instruction dest = getInstructionAt(instruction.getValue());

                // Ocorre quando o endereço após o @ não existe.
                if (dest == null) {
                    builder.append("<HTML>");
                    builder.append("<center><b>Endereço de Memória</b></center>");
                    builder.append("<br>");
                    builder.append("<b>Valor: Desconhecido</b>");
                    builder.append("</HTML>");
                    return builder;
                } else {
                    Value value = dest.getValue();
                    builder.append("<HTML>");
                    builder.append("<center><b>Endereço de Memória</b></center>");
                    builder.append("<br>");
                    builder.append("<b>Binário:</b> ").append(value.toBinary());
                    builder.append("<br>");
View Full Code Here

Examples of cl.niclabs.skandium.instructions.Instruction

   
      //iterate while there are instructions and no children tasks
      while(!stack.empty() && children.size() <= 0){
   
        //pop the instruction and interpret it
        Instruction inst = stack.pop();
        strace= inst.getSkeletonTrace()//skeleton trace in case of exception
        P = inst.interpret(P, stack, children);
       
        //check that the task has not been canceled
        if(task.isCancelled()) return task;
      }
     
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.Instruction

  }

  @Test
  public void testPicksComplientRule() {
    InstructionExtractor extractor = new InstructionExtractor( createEnvironment( new Bounds( 0, 0, 100, 100 ) ) );
    Instruction instruction = PassePartout.columns( 5 );
    Rule rule = PassePartout.when( PassePartout.minWidth( PassePartout.px( 90 ) ) ).then( instruction );
    List<Rule> rules = new ArrayList<Rule>();
    rules.add( rule );

    List<Instruction> instructions = extractor.extract( rules );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.Instruction

  }

  @Test
  public void testPicksComplientRuleWithMultipleRules() {
    InstructionExtractor extractor = new InstructionExtractor( createEnvironment( new Bounds( 0, 0, 100, 100 ) ) );
    Instruction instruction = PassePartout.columns( 5 );
    Rule rule = PassePartout.when( PassePartout.minWidth( PassePartout.px( 90 ) ) ).then( instruction );
    List<Rule> rules = new ArrayList<Rule>();
    rules.add( PassePartout.when( PassePartout.minWidth( PassePartout.px( 110 ) ) ).then( PassePartout.columns( 10 ) ) );
    rules.add( rule );
View Full Code Here

Examples of com.eclipsesource.tabris.passepartout.Instruction

  }

  @Test
  public void testPicksComplientRuleWithMultipleConditionsAndWithMultipleRules() {
    InstructionExtractor extractor = new InstructionExtractor( createEnvironment( new Bounds( 0, 0, 100, 100 ) ) );
    Instruction instruction = PassePartout.columns( 5 );
    Rule rule = PassePartout.when( PassePartout.minWidth( PassePartout.px( 90 ) ) ).and( maxWidth( PassePartout.px( 110 ) ) ).then( instruction );
    List<Rule> rules = new ArrayList<Rule>();
    rules.add( PassePartout.when( PassePartout.minWidth( PassePartout.px( 110 ) ) ).then( PassePartout.columns( 10 ) ) );
    rules.add( rule );
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.