Package org.jreversepro.ast.expression

Examples of org.jreversepro.ast.expression.Variable


    }
  }

  private void operateLoadInstruction(Instruction ins,
      int variableIndexToSymbolTable) {
    Variable var = new Variable(varTable, JVM_TYPE_FLOAT,
        variableIndexToSymbolTable, ins.currentPc);
    evalMachine.push(var);
  }
View Full Code Here


  private void operateStoreInstruction(Instruction ins,
      int variableIndexToSymbolTable) {
    int indexToSymbolTable = variableIndexToSymbolTable;
    Expression rhs = evalMachine.pop();
    Variable lhs = new Variable(varTable, rhs.getType(), indexToSymbolTable,
        ins.currentPc);
    statements.append(new CompleteLine(ins, new Assignment(lhs, rhs)));

    // Hint to the symbol table about the type.
    varTable.recordLocalDatatypeReference(variableIndexToSymbolTable, rhs
View Full Code Here

  }

  private void operateLoadInstruction(Instruction ins,
      int variableIndexToSymbolTable) {
    Variable var = new Variable(varTable, JVM_TYPE_LONG,
        variableIndexToSymbolTable, ins.currentPc);
    evalMachine.push(var);
  }
View Full Code Here

  @Override
  void evaluate(Instruction ins) {
    int indexToSymbolTable = getIndexToSymbolTable(ins);
    Expression rhs = evalMachine.pop();
    Variable lhs = new Variable(varTable, rhs.getType(), indexToSymbolTable,
        ins.currentPc);

    statements.append(new CompleteLine(ins, new Assignment(lhs, rhs)));

    // Hint to the symbol table about the type.
View Full Code Here

    }
  }

  private void operateLoadInstruction(Instruction ins,
      int variableIndexToSymbolTable) {
    Variable var = new Variable(varTable, JVM_TYPE_DOUBLE,
        variableIndexToSymbolTable, ins.currentPc);
    evalMachine.push(var);
  }
View Full Code Here

  }

  protected void operateLoadInstruction(Instruction ins,
      int variableIndexToSymbolTable) {
    Variable var = new Variable(varTable, JVM_TYPE_INT,
        variableIndexToSymbolTable, ins.currentPc);

    evalMachine.push(var);
  }
View Full Code Here

  }

  protected void operateStoreInstruction(Instruction ins,
      int variableIndexToSymbolTable, Expression expr) {
    Variable lhs = new Variable(varTable, expr.getType(),
        variableIndexToSymbolTable, ins.currentPc);
    statements.append(new CompleteLine(ins, new Assignment(lhs, expr)));

    // Hint to the symbol table about the type.
    varTable.recordLocalDatatypeReference(variableIndexToSymbolTable, expr
View Full Code Here

   * (net.sf.jrevpro.reflect.instruction.Instruction)
   */
  @Override
  void evaluate(Instruction ins) {

    Variable var = new Variable(varTable, JVM_TYPE_INT, ins
        .getArgUnsignedWide(), ins.currentPc);
    int constant = ins.getArgWide(1);

    if (constant < 0) {
      Constant ct = new Constant(-constant);
View Full Code Here

    }
  }

  private void operateLoadInstruction(Instruction ins,
      int variableIndexToSymbolTable) {
    Variable var = new Variable(varTable, JVM_TYPE_REFERENCE,
        variableIndexToSymbolTable, ins.currentPc);

    evalMachine.push(var);
  }
View Full Code Here

TOP

Related Classes of org.jreversepro.ast.expression.Variable

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.