Examples of Pop


Examples of org.apache.bcel.generic.POP

        ReferenceType targetType = new ObjectType(declaringClassName);
        Class fieldTypeClass = field.getType();
        Type fieldType = computeType(fieldTypeClass);
        if (isStaticField) {
            // handle static fields -- simply pop rather than checkcast
            instructionList.append(new POP());
            instructionList.append(
                instructionFactory.createGetStatic(declaringClassName,
                    field.getName(), fieldType));
        }
        else {
View Full Code Here

Examples of org.apache.bcel.generic.POP

  @SuppressWarnings("unused")
  // Called using reflection
  private Instruction createInstructionPop(Element inst) throws IllegalXMLVMException
  {
    return new POP();
  }
View Full Code Here

Examples of org.aspectj.apache.bcel.generic.POP

        il.append(Utility.createInvoke(factory, Constants.INVOKEINTERFACE, AjcMemberMaker.perObjectInterfaceGet(aspectType)));
        il.append(InstructionConstants.DUP);
        BranchInstruction ifNull = InstructionFactory.createBranchInstruction(Constants.IFNULL, null);
        il.append(ifNull);
        il.append(InstructionFactory.createReturn(BcelWorld.makeBcelType(aspectType)));
        InstructionHandle ifNullElse = il.append(new POP());
        ifNull.setTarget(ifNullElse);
        InstructionHandle ifEqElse = il.append(factory.createNew(AjcMemberMaker.NO_ASPECT_BOUND_EXCEPTION.getName()));
        ifEq.setTarget(ifEqElse);
        il.append(InstructionConstants.DUP);
        il.append(factory.createInvoke(AjcMemberMaker.NO_ASPECT_BOUND_EXCEPTION.getName(), "<init>", Type.VOID, Type.NO_ARGS, Constants.INVOKESPECIAL));
View Full Code Here

Examples of org.eclipse.jdt.internal.debug.eval.ast.instructions.Pop

   *
   */
  private void addPopInstruction() {
    Instruction lastInstruction = fInstructions
        .getInstruction(fInstructions.getEnd());
    push(new Pop(lastInstruction.getSize() + 1));
    storeInstruction();
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.debug.eval.ast.instructions.Pop

      storeInstruction(); // push 1
      storeInstruction(); // operator
      boxing(typeBinding, null);
      storeInstruction(); // boxing
      storeInstruction(); // assignment
      push(new Pop(assignmentInstruction.getSize() + 1));

      return false;
    }

    switch (char0) {
View Full Code Here

Examples of org.eclipse.jdt.internal.debug.eval.ast.instructions.Pop

      }
    }

    Jump jumpEnd = null;
    if (jumpDefault == null) {
      push(new Pop(0));
      storeInstruction(); // pop
      jumpEnd = new Jump();
      push(jumpEnd);
      storeInstruction(); // jump
    }

    for (Iterator<slot> iter = jumpsStatements.iterator(); iter.hasNext();) {
      currentslot = iter.next();
      for (Iterator<ConditionalJump> iterator = currentslot.jumps.iterator(); iterator.hasNext();) {
        ConditionalJump condJump = iterator.next();
        condJump.setOffset((fCounter - fInstructions.indexOf(condJump)) - 1);
      }
      if (currentslot.stmts != null) {
        push(new Pop(0));
        storeInstruction(); // pop
        for (Iterator<Statement> iterator = currentslot.stmts.iterator(); iterator.hasNext();) {
          iterator.next().accept(this);
        }
      }
    }

    // default case
    if (jumpDefault != null) {
      jumpDefault.setOffset((fCounter - fInstructions.indexOf(jumpDefault)) - 1);
      push(new Pop(0));
      storeInstruction(); // pop
      for (Iterator<Statement> iterator = statementsDefault.iterator(); iterator.hasNext();) {
        iterator.next().accept(this);
      }
    } else if(jumpEnd != null){
View Full Code Here

Examples of org.rascalmpl.library.experiments.Compiler.RVM.Interpreter.Instructions.Pop

  /*
   * All Instructions
   */
 
  public CodeBlock POP(){
    return add(new Pop(this));
  }
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.